Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs in genfs_gop_write(), actually set the B_AS...
details: https://anonhg.NetBSD.org/src/rev/b0cea66487be
branches: trunk
changeset: 519941:b0cea66487be
user: chs <chs%NetBSD.org@localhost>
date: Mon Dec 31 06:44:58 2001 +0000
description:
in genfs_gop_write(), actually set the B_ASYNC flag on buffers that we're
not going to wait for. this doesn't matter for real devices since we call
VOP_STRATEGY() directly, but NFS uses this flag to decide whether or not
to hand the buffer off to an nfsiod thread.
diffstat:
sys/miscfs/genfs/genfs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9359da1f1e47 -r b0cea66487be sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c Mon Dec 31 06:40:08 2001 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c Mon Dec 31 06:44:58 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_vnops.c,v 1.44 2001/12/31 06:40:08 chs Exp $ */
+/* $NetBSD: genfs_vnops.c,v 1.45 2001/12/31 06:44:58 chs Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.44 2001/12/31 06:40:08 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.45 2001/12/31 06:44:58 chs Exp $");
#include "opt_nfsserver.h"
@@ -1349,7 +1349,7 @@
mbp->b_bufsize = npages << PAGE_SHIFT;
mbp->b_data = (void *)kva;
mbp->b_resid = mbp->b_bcount = bytes;
- mbp->b_flags = B_BUSY|B_WRITE|B_AGE| (async ? B_CALL : 0);
+ mbp->b_flags = B_BUSY|B_WRITE|B_AGE| (async ? (B_CALL|B_ASYNC) : 0);
mbp->b_iodone = uvm_aio_biodone;
mbp->b_vp = vp;
LIST_INIT(&mbp->b_dep);
@@ -1387,7 +1387,7 @@
bp->b_data = (char *)kva +
(vaddr_t)(offset - pg->offset);
bp->b_resid = bp->b_bcount = iobytes;
- bp->b_flags = B_BUSY|B_WRITE|B_CALL;
+ bp->b_flags = B_BUSY|B_WRITE|B_CALL|B_ASYNC;
bp->b_iodone = uvm_aio_biodone1;
bp->b_vp = vp;
LIST_INIT(&bp->b_dep);
Home |
Main Index |
Thread Index |
Old Index