Instead of asserting the vnode lock before manipulating v_vflag, acquire
it and drop it afterwards. Found by: kris MFC after: 1 week
This commit is contained in:
parent
fc07e4027a
commit
4a99d6f90a
@ -429,8 +429,9 @@ quotaon(td, mp, type, fname)
|
||||
quotaoff(td, mp, type);
|
||||
ump->um_qflags[type] |= QTF_OPENING;
|
||||
mp->mnt_flag |= MNT_QUOTA;
|
||||
ASSERT_VOP_LOCKED(vp, "quotaon");
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
|
||||
vp->v_vflag |= VV_SYSTEM;
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
*vpp = vp;
|
||||
/*
|
||||
* Save the credential of the process that turned on quotas.
|
||||
|
Loading…
x
Reference in New Issue
Block a user