Protect change to bo_flag by holding the bufobj mutex.
This commit is contained in:
parent
e60c361218
commit
8d0547c68b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user