diff options
author | jeff <jeff@FreeBSD.org> | 2005-03-13 12:14:56 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-03-13 12:14:56 +0000 |
commit | 5bd51ec6e6125eed91ed13102532414e08b88d96 (patch) | |
tree | 66524027952cc29211af6953138106a47d9cf8d0 /sys/nfsclient | |
parent | 79cf2c5860e7855a3a8a05b07c3ac0eaaa5fdc9d (diff) | |
download | FreeBSD-src-5bd51ec6e6125eed91ed13102532414e08b88d96.zip FreeBSD-src-5bd51ec6e6125eed91ed13102532414e08b88d96.tar.gz |
- 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.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 2 | ||||
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index f0f5d53..f877850 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -1235,7 +1235,7 @@ nfs_vinvalbuf(struct vnode *vp, int flags, struct thread *td, int intrflg) * being called through vclean(). It is not clear that this is * unsafe. */ - if (vp->v_iflag & VI_XLOCK) + if (vp->v_iflag & VI_DOOMED) return (0); if ((nmp->nm_flag & NFSMNT_INT) == 0) diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 5a23acf..4fe6ee4 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -802,7 +802,7 @@ nfs_clearcommit(struct mount *mp) MNT_ILOCK(mp); MNT_VNODE_FOREACH(vp, mp, nvp) { VI_LOCK(vp); - if (vp->v_iflag & VI_XLOCK) { + if (vp->v_iflag & VI_DOOMED) { VI_UNLOCK(vp); continue; } |