- Check the XLOCK before we inspect the vnode.

This commit is contained in:
jeff 2003-10-05 06:46:45 +00:00
parent 74e8328d6b
commit b565c3cd95

View File

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