Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs Use B_ASYNC in the !PGO_SYNCIO case. Gets b...
details: https://anonhg.NetBSD.org/src/rev/3185fbbaf831
branches: trunk
changeset: 538488:3185fbbaf831
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Oct 21 15:21:35 2002 +0000
description:
Use B_ASYNC in the !PGO_SYNCIO case. Gets back most, if not all, NFS
read throughput performance lost since the introduction of UBC. Spotted
by YAMAMOTO Takashi, many thanks to him.
diffstat:
sys/miscfs/genfs/genfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ebe73b3b3441 -r 3185fbbaf831 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c Mon Oct 21 14:45:19 2002 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c Mon Oct 21 15:21:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_vnops.c,v 1.64 2002/05/29 11:04:40 enami Exp $ */
+/* $NetBSD: genfs_vnops.c,v 1.65 2002/10/21 15:21:35 fvdl Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.64 2002/05/29 11:04:40 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.65 2002/10/21 15:21:35 fvdl Exp $");
#include "opt_nfsserver.h"
@@ -651,7 +651,7 @@
mbp->b_bufsize = totalbytes;
mbp->b_data = (void *)kva;
mbp->b_resid = mbp->b_bcount = bytes;
- mbp->b_flags = B_BUSY|B_READ| (async ? B_CALL : 0);
+ mbp->b_flags = B_BUSY|B_READ| (async ? B_CALL|B_ASYNC : 0);
mbp->b_iodone = (async ? uvm_aio_biodone : 0);
mbp->b_vp = vp;
LIST_INIT(&mbp->b_dep);
Home |
Main Index |
Thread Index |
Old Index