diff options
author | smh <smh@FreeBSD.org> | 2013-03-21 10:16:10 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2013-03-21 10:16:10 +0000 |
commit | 3db2bd548a96440bd699b58b1b5d6f610b3caff2 (patch) | |
tree | 2b795a7d020f9562d4f20f1ce9188d961bef7515 /etc/etc.mips | |
parent | f8b4607ac92c9c001eb2197ae2267368be41f2c2 (diff) | |
download | FreeBSD-src-3db2bd548a96440bd699b58b1b5d6f610b3caff2.zip FreeBSD-src-3db2bd548a96440bd699b58b1b5d6f610b3caff2.tar.gz |
Improve TXG handling in the TRIM module.
This patch adds some improvements to the way the trim module considers
TXGs:
- Free ZIOs are registered with the TXG from the ZIO itself, not the
current SPA syncing TXG (which may be out of date);
- L2ARC are registered with a zero TXG number, as L2ARC has no concept
of TXGs;
- The TXG limit for issuing TRIMs is now computed from the last synced
TXG, not the currently syncing TXG. Indeed, under extremely unlikely
race conditions, there is a risk we could trim blocks which have been
freed in a TXG that has not finished syncing, resulting in potential
data corruption in case of a crash.
Reviewed by: pjd (mentor)
Approved by: pjd (mentor)
Obtained from: https://github.com/dechamps/zfs/commit/5b46ad40d9081d75505d6f3bf04ac652445df366
MFC after: 2 weeks
Diffstat (limited to 'etc/etc.mips')
0 files changed, 0 insertions, 0 deletions