v_interlock is a mutex now, not simple lock.
This commit is contained in:
parent
1087fd198e
commit
1c4c2d8235
@ -149,7 +149,7 @@ nwfs_allocvp(struct mount *mp, ncpfid fid, struct vnode **vpp)
|
||||
rescan:
|
||||
if (nwfs_hashlookup(nmp, fid, &np) == 0) {
|
||||
vp = NWTOV(np);
|
||||
simple_lock(&vp->v_interlock);
|
||||
mtx_enter(&vp->v_interlock, MTX_DEF);
|
||||
lockmgr(&nwhashlock, LK_RELEASE, NULL, p);
|
||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, p))
|
||||
goto loop;
|
||||
|
@ -149,7 +149,7 @@ nwfs_allocvp(struct mount *mp, ncpfid fid, struct vnode **vpp)
|
||||
rescan:
|
||||
if (nwfs_hashlookup(nmp, fid, &np) == 0) {
|
||||
vp = NWTOV(np);
|
||||
simple_lock(&vp->v_interlock);
|
||||
mtx_enter(&vp->v_interlock, MTX_DEF);
|
||||
lockmgr(&nwhashlock, LK_RELEASE, NULL, p);
|
||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, p))
|
||||
goto loop;
|
||||
|
Loading…
Reference in New Issue
Block a user