diff options
author | kib <kib@FreeBSD.org> | 2008-12-08 11:04:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-12-08 11:04:17 +0000 |
commit | 01085e085d51e1ee61dcba260fad1e95ee8a4e99 (patch) | |
tree | bc3515b769d3b5646ab79908bdbc1b1e8798167f /sbin/rtsol | |
parent | 4495ba28679e6469e05b130ac1d5dbd4f5cfeae2 (diff) | |
download | FreeBSD-src-01085e085d51e1ee61dcba260fad1e95ee8a4e99.zip FreeBSD-src-01085e085d51e1ee61dcba260fad1e95ee8a4e99.tar.gz |
The dqrele() function syncs the dq, then acquires the dqh lock, and then
does final drop of the the dq reference to put it onto the free list.
There is a possibility that the dq would be found by another thread
after sync and before the dqh lock is acquired. If that other thread
drops the dq before we have taken the dqh lock, the dirty dq is put on
the free list.
Recheck the DQ_MOD after the dqh lock is relocked. Repeat dqsync() if
the dq is dirty. This ensures that up to date dq is written in the quota
file and fixes assertion in dqget().
Reported and tested by: Frode Nordahl <frode nordahl net>
MFC after: 3 days
Diffstat (limited to 'sbin/rtsol')
0 files changed, 0 insertions, 0 deletions