Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev vndstrategy/vndiodone:



details:   https://anonhg.NetBSD.org/src/rev/23407f2400c1
branches:  trunk
changeset: 569864:23407f2400c1
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Sep 10 10:00:33 2004 +0000

description:
vndstrategy/vndiodone:
don't call bgetvp/brelvp here.  they are not interrupt safe.
as we're doing something like direct i/o,
there's no point to call them anyway.

diffstat:

 sys/dev/vnd.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (46 lines):

diff -r f168e32d5b70 -r 23407f2400c1 sys/dev/vnd.c
--- a/sys/dev/vnd.c     Fri Sep 10 09:38:17 2004 +0000
+++ b/sys/dev/vnd.c     Fri Sep 10 10:00:33 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnd.c,v 1.108 2004/08/30 00:34:42 thorpej Exp $        */
+/*     $NetBSD: vnd.c,v 1.109 2004/09/10 10:00:33 yamt Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.108 2004/08/30 00:34:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.109 2004/09/10 10:00:33 yamt Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "fs_nfs.h"
@@ -551,7 +551,7 @@
                nbp->vb_buf.b_blkno = nbp->vb_buf.b_rawblkno = nbn + btodb(off);
                nbp->vb_buf.b_proc = bp->b_proc;
                nbp->vb_buf.b_iodone = vndiodone;
-               nbp->vb_buf.b_vp = NULLVP;
+               nbp->vb_buf.b_vp = vp;
 
                nbp->vb_xfer = vnx;
 
@@ -566,7 +566,7 @@
                        goto out;
                }
                vnx->vx_pending++;
-               bgetvp(vp, &nbp->vb_buf);
+
                BUFQ_PUT(&vnd->sc_tab, &nbp->vb_buf);
                vndstart(vnd);
                splx(s);
@@ -672,9 +672,6 @@
                vnx->vx_error = vbp->vb_buf.b_error;
        }
 
-       if (vbp->vb_buf.b_vp != NULLVP)
-               brelvp(&vbp->vb_buf);
-
        VND_PUTBUF(vnd, vbp);
 
        /*



Home | Main Index | Thread Index | Old Index