v_interlock is a mutex now, not simple lock.

This commit is contained in:
bp 2000-11-04 02:42:11 +00:00
parent b1f245fc31
commit 099f33073e
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ loop:
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 @@ loop:
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;