- 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.
This commit is contained in:
Jeff Roberson 2003-10-04 12:52:37 +00:00
parent 04c81ad83c
commit c13c04a426

View File

@ -789,8 +789,8 @@ msdosfs_sync(mp, waitfor, cred, td)
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 &