v_interlock is a mutex now, not simple lock.

This commit is contained in:
Boris Popov 2000-11-04 02:42:11 +00:00
parent 1087fd198e
commit 1c4c2d8235
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;