mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
- Skip over xvp if XLOCK is set.
This commit is contained in:
parent
1b01fc6ef7
commit
53938b4a86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120789
@ -417,7 +417,8 @@ ffs_snapshot(mp, snapfile)
|
||||
nvp = TAILQ_NEXT(xvp, v_nmntvnodes);
|
||||
VI_LOCK(xvp);
|
||||
mtx_unlock(&mntvnode_mtx);
|
||||
if (xvp->v_usecount == 0 || xvp->v_type == VNON ||
|
||||
if ((xvp->v_iflag & VI_XLOCK) ||
|
||||
xvp->v_usecount == 0 || xvp->v_type == VNON ||
|
||||
(VTOI(xvp)->i_flags & SF_SNAPSHOT)) {
|
||||
VI_UNLOCK(xvp);
|
||||
mtx_lock(&mntvnode_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user