diff options
author | kib <kib@FreeBSD.org> | 2016-03-27 08:21:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-03-27 08:21:17 +0000 |
commit | dae532b324d6299b693cf731a6c4dd2b97e0be87 (patch) | |
tree | 755dac2eb6231a130cb58adf174fe635757001ad /usr.sbin/ypset | |
parent | 22c1ebea2165a7ab10a96ecfa28eeadff62b87e2 (diff) | |
download | FreeBSD-src-dae532b324d6299b693cf731a6c4dd2b97e0be87.zip FreeBSD-src-dae532b324d6299b693cf731a6c4dd2b97e0be87.tar.gz |
Split the global taskqueue used to process all UFS trim completions,
into per-mount taskqueue with the private taskqueue processing thread.
This allows to drain the taskqueue on unmount, to ensure that all
TRIMs are finished before mount structures are freed.
But just draining the taskqueue where TRIM biodone geom-up completions
are processed is not enough, since ffs_blkfree(), called by the task,
might result in more writes. Count inflight delayed blkfree's and
pause() unmount until the counter drains as well.
Reported by: Nick Evans <nevans@talkpoint.com>
Tested by: Nick Evans <nevans@talkpoint.com>, pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/ypset')
0 files changed, 0 insertions, 0 deletions