- Check the XLOCK before we inspect the vnode.

This commit is contained in:
Jeff Roberson 2003-10-05 06:46:45 +00:00
parent 4b1a52f639
commit b21ad23fff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120787

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