diff options
author | Joe Thornber <ejt@redhat.com> | 2012-03-28 17:41:28 (GMT) |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-03-28 17:41:28 (GMT) |
commit | 104655fd4dcebd50068ef30253a001da72e3a081 (patch) | |
tree | ce4cc70f3ecf643d1c63948f902bc135b17750c7 /scripts/makelst | |
parent | eb2aa48d4eb7aee63cba201bf47641dad3e92250 (diff) | |
download | linux-104655fd4dcebd50068ef30253a001da72e3a081.tar.xz |
dm thin: support discards
Support discards in the thin target.
On discard the corresponding mapping(s) are removed from the thin
device. If the associated block(s) are no longer shared the discard
is passed to the underlying device.
All bios other than discards now have an associated deferred_entry
that is saved to the 'all_io_entry' in endio_hook. When non-discard
IO completes and associated mappings are quiesced any discards that
were deferred, via ds_add_work() in process_discard(), will be queued
for processing by the worker thread.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++----
drivers/md/dm-thin.c | 172 ++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 158 insertions(+), 14 deletions(-)
Diffstat (limited to 'scripts/makelst')
0 files changed, 0 insertions, 0 deletions