Protect change to bo_flag by holding the bufobj mutex.

This commit is contained in:
Tor Egge 2006-09-26 04:21:20 +00:00
parent e60c361218
commit 8d0547c68b

View File

@ -849,7 +849,9 @@ ffs_mountfs(devvp, mp, td)
* Our bufobj must require giant for snapshots when quotas are
* enabled.
*/
BO_LOCK(&devvp->v_bufobj);
devvp->v_bufobj.bo_flag |= BO_NEEDSGIANT;
BO_UNLOCK(&devvp->v_bufobj);
#else
MNT_ILOCK(mp);
mp->mnt_kern_flag |= MNTK_MPSAFE;