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:
Robert Watson 2006-02-11 21:09:27 +00:00
parent fc07e4027a
commit 4a99d6f90a

View File

@ -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.