mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
- Check the XLOCK before we inspect the vnode.
This commit is contained in:
parent
4b1a52f639
commit
b21ad23fff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120787
@ -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