1
0
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:
Jeff Roberson 2003-10-05 06:48:37 +00:00
parent 1b01fc6ef7
commit 53938b4a86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120789

View File

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