- The VI_DOOMED flag now signals the end of a vnode's relationship with

the filesystem.  Check that rather than VI_XLOCK.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-03-13 12:01:50 +00:00
parent b5411d4fcb
commit fdcc82276e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143502
2 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ ffs_snapshot(mp, snapfile)
MNT_VNODE_FOREACH(xvp, mp, nvp) {
VI_LOCK(xvp);
MNT_IUNLOCK(mp);
if ((xvp->v_iflag & VI_XLOCK) ||
if ((xvp->v_iflag & VI_DOOMED) ||
xvp->v_usecount == 0 || xvp->v_type == VNON ||
(VTOI(xvp)->i_flags & SF_SNAPSHOT)) {
VI_UNLOCK(xvp);

View File

@ -4864,7 +4864,7 @@ softdep_fsync(vp)
* not now, but then the user was not asking to have it
* written, so we are not breaking any promises.
*/
if (vp->v_iflag & VI_XLOCK)
if (vp->v_iflag & VI_DOOMED)
break;
/*
* We prevent deadlock by always fetching inodes from the