When removing IN_RECURSE support during the Lite/2 merge, read/write

to/from mmaped regions was broken.  This commit fixes the breakage, and
uses the new Lite/2 locking mechanisms.
This commit is contained in:
John Dyson 1997-03-08 04:33:47 +00:00
parent 2efff52162
commit eb2c768ebb

View file

@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
* $Id$
* $Id: vnode_pager.c,v 1.69 1997/02/22 09:48:42 peter Exp $
*/
/*
@ -976,7 +976,7 @@ vnode_pager_lock(object)
if (object->type != OBJT_VNODE)
continue;
vn_lock(object->handle, LK_EXCLUSIVE | LK_RETRY, p);
vn_lock(object->handle, LK_EXCLUSIVE | LK_RETRY | LK_CANRECURSE, p);
return object->handle;
}
return NULL;