- Check the XLOCK before we inspect the vnode.
This commit is contained in:
parent
74e8328d6b
commit
b565c3cd95
@ -795,6 +795,10 @@ nfs_clearcommit(struct mount *mp)
|
||||
goto loop;
|
||||
nvp = TAILQ_NEXT(vp, v_nmntvnodes);
|
||||
VI_LOCK(vp);
|
||||
if (vp->v_iflag & VI_XLOCK) {
|
||||
VI_UNLOCK(vp);
|
||||
continue;
|
||||
}
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
for (bp = TAILQ_FIRST(&vp->v_dirtyblkhd); bp; bp = nbp) {
|
||||
nbp = TAILQ_NEXT(bp, b_vnbufs);
|
||||
|
Loading…
Reference in New Issue
Block a user