diff options
author | dyson <dyson@FreeBSD.org> | 1997-10-06 02:38:30 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-10-06 02:38:30 +0000 |
commit | df5698367636fcc609f42dc432eee5ad226a1f3f (patch) | |
tree | 1d96490c793adfb6e217734d369cdb416961add3 /sys/vm | |
parent | a96b1911b8da2ab634bc058d4921b02c3c30f315 (diff) | |
download | FreeBSD-src-df5698367636fcc609f42dc432eee5ad226a1f3f.zip FreeBSD-src-df5698367636fcc609f42dc432eee5ad226a1f3f.tar.gz |
Relax the vnode locking for read only operations.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vnode_pager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 796de50..e9005a6 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -38,7 +38,7 @@ * SUCH DAMAGE. * * from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91 - * $Id: vnode_pager.c,v 1.73 1997/08/25 22:15:31 bde Exp $ + * $Id: vnode_pager.c,v 1.74 1997/09/01 03:17:34 bde Exp $ */ /* @@ -973,7 +973,8 @@ vnode_pager_lock(object) if (object->type != OBJT_VNODE) continue; - vn_lock(object->handle, LK_EXCLUSIVE | LK_RETRY | LK_CANRECURSE, p); + vn_lock(object->handle, + LK_NOPAUSE | LK_SHARED | LK_RETRY | LK_CANRECURSE, p); return object->handle; } return NULL; |