mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
2efff52162
commit
eb2c768ebb
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue