mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
ufs quotas: fix configuring soft quota grace time
The QTF_CLOSING flag needs to be cleared earlier to allow dqget() to work. PR: 274552 MFC after: 1 week
This commit is contained in:
parent
7a974a6498
commit
2fee397460
|
@ -580,6 +580,15 @@ quotaon(struct thread *td, struct mount *mp, int type, void *fname,
|
|||
VN_LOCK_DSHARE(vp);
|
||||
VOP_UNLOCK(vp);
|
||||
*vpp = vp;
|
||||
|
||||
/*
|
||||
* Allow the getdq from getinoquota below to read the quota
|
||||
* from file.
|
||||
*/
|
||||
UFS_LOCK(ump);
|
||||
ump->um_qflags[type] &= ~QTF_CLOSING;
|
||||
UFS_UNLOCK(ump);
|
||||
|
||||
/*
|
||||
* Save the credential of the process that turned on quotas.
|
||||
* Set up the time limits for this quota.
|
||||
|
@ -594,13 +603,6 @@ quotaon(struct thread *td, struct mount *mp, int type, void *fname,
|
|||
ump->um_itime[type] = dq->dq_itime;
|
||||
dqrele(NULLVP, dq);
|
||||
}
|
||||
/*
|
||||
* Allow the getdq from getinoquota below to read the quota
|
||||
* from file.
|
||||
*/
|
||||
UFS_LOCK(ump);
|
||||
ump->um_qflags[type] &= ~QTF_CLOSING;
|
||||
UFS_UNLOCK(ump);
|
||||
/*
|
||||
* Search vnodes associated with this mount point,
|
||||
* adding references to quota file being opened.
|
||||
|
|
Loading…
Reference in a new issue