Fix more mntvnode and vnode interlock order reversals.
This commit is contained in:
parent
d164fef6d7
commit
ed87274d16
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78940
@ -574,15 +574,15 @@ ext2_reload(mountp, cred, p)
|
||||
goto loop;
|
||||
}
|
||||
nvp = LIST_NEXT(vp, v_mntvnodes);
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
/*
|
||||
* Step 4: invalidate all inactive vnodes.
|
||||
*/
|
||||
if (vrecycle(vp, &mntvnode_mtx, p))
|
||||
if (vrecycle(vp, NULL, p))
|
||||
goto loop;
|
||||
/*
|
||||
* Step 5: invalidate all cached file data.
|
||||
*/
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
mtx_lock(&vp->v_interlock);
|
||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, p)) {
|
||||
goto loop;
|
||||
|
@ -574,15 +574,15 @@ ext2_reload(mountp, cred, p)
|
||||
goto loop;
|
||||
}
|
||||
nvp = LIST_NEXT(vp, v_mntvnodes);
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
/*
|
||||
* Step 4: invalidate all inactive vnodes.
|
||||
*/
|
||||
if (vrecycle(vp, &mntvnode_mtx, p))
|
||||
if (vrecycle(vp, NULL, p))
|
||||
goto loop;
|
||||
/*
|
||||
* Step 5: invalidate all cached file data.
|
||||
*/
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
mtx_lock(&vp->v_interlock);
|
||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, p)) {
|
||||
goto loop;
|
||||
|
@ -482,15 +482,15 @@ ffs_reload(mp, cred, p)
|
||||
goto loop;
|
||||
}
|
||||
nvp = LIST_NEXT(vp, v_mntvnodes);
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
/*
|
||||
* Step 4: invalidate all inactive vnodes.
|
||||
*/
|
||||
if (vrecycle(vp, &mntvnode_mtx, p))
|
||||
if (vrecycle(vp, NULL, p))
|
||||
goto loop;
|
||||
/*
|
||||
* Step 5: invalidate all cached file data.
|
||||
*/
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
mtx_lock(&vp->v_interlock);
|
||||
if (vget(vp, LK_EXCLUSIVE | LK_INTERLOCK, p)) {
|
||||
goto loop;
|
||||
|
Loading…
Reference in New Issue
Block a user