summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-10-04 12:52:37 +0000
committerjeff <jeff@FreeBSD.org>2003-10-04 12:52:37 +0000
commit449c7a515c3fc0ecb9e6e170e5152132a1fe0f26 (patch)
tree354b41d9a7cda681a1a36d13563190db70866030 /sys/fs/msdosfs
parentb8e79e62d033f8ceaab13cf40e9026f2c075f218 (diff)
downloadFreeBSD-src-449c7a515c3fc0ecb9e6e170e5152132a1fe0f26.zip
FreeBSD-src-449c7a515c3fc0ecb9e6e170e5152132a1fe0f26.tar.gz
- Acquire the vnode interlock prior to droping the mntvnode_mtx. This does
not eliminate races where the vnode could be reclaimed and end up with a NULL v_data pointer but Giant is protecting us from that at the moment.
Diffstat (limited to 'sys/fs/msdosfs')
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 875d580..c6e25d2 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -789,8 +789,8 @@ loop:
goto loop;
nvp = TAILQ_NEXT(vp, v_nmntvnodes);
- mtx_unlock(&mntvnode_mtx);
VI_LOCK(vp);
+ mtx_unlock(&mntvnode_mtx);
dep = VTODE(vp);
if (vp->v_type == VNON ||
((dep->de_flag &
OpenPOWER on IntegriCloud