summaryrefslogtreecommitdiff
path: root/Documentation/device-mapper
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2012-03-28 18:41:28 +0100
committerAlasdair G Kergon <agk@redhat.com>2012-03-28 18:41:28 +0100
commit104655fd4dcebd50068ef30253a001da72e3a081 (patch)
treece4cc70f3ecf643d1c63948f902bc135b17750c7 /Documentation/device-mapper
parenteb2aa48d4eb7aee63cba201bf47641dad3e92250 (diff)
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 'Documentation/device-mapper')
0 files changed, 0 insertions, 0 deletions