From f2649d6926e3bd168804fd4e84478ba7d58f2e0e Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 5 Oct 2003 06:44:53 +0000 Subject: [PATCH] - Check the XLOCK prior to inspecting v_data. --- sys/fs/msdosfs/msdosfs_vfsops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index c6e25d21ae19..fc0e35426102 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -790,6 +790,10 @@ loop: nvp = TAILQ_NEXT(vp, v_nmntvnodes); VI_LOCK(vp); + if (vp->v_iflag & VI_XLOCK) { + VI_UNLOCK(vp); + continue; + } mtx_unlock(&mntvnode_mtx); dep = VTODE(vp); if (vp->v_type == VNON ||