mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 00:04:58 +00:00
- Disable vfs shared locks by default. They must be specifically enabled
on filesystems which safely support them. It appears that many network filesystems specifically are not shared lock safe. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
ec3db02a3e
commit
e451d879a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144374
|
@ -831,7 +831,11 @@ getnewvnode(tag, mp, vops, vpp)
|
|||
*/
|
||||
vp->v_vnlock = &vp->v_lock;
|
||||
mtx_init(&vp->v_interlock, "vnode interlock", NULL, MTX_DEF);
|
||||
lockinit(vp->v_vnlock, PVFS, tag, VLKTIMEOUT, 0);
|
||||
/*
|
||||
* By default, don't allow shared locks unless filesystems
|
||||
* opt-in.
|
||||
*/
|
||||
lockinit(vp->v_vnlock, PVFS, tag, VLKTIMEOUT, LK_NOSHARE);
|
||||
/*
|
||||
* Initialize bufobj.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue