summaryrefslogtreecommitdiff
path: root/scripts/depmod.sh
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2012-03-28 17:41:28 (GMT)
committerAlasdair G Kergon <agk@redhat.com>2012-03-28 17:41:28 (GMT)
commit104655fd4dcebd50068ef30253a001da72e3a081 (patch)
treece4cc70f3ecf643d1c63948f902bc135b17750c7 /scripts/depmod.sh
parenteb2aa48d4eb7aee63cba201bf47641dad3e92250 (diff)
downloadlinux-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/depmod.sh')
0 files changed, 0 insertions, 0 deletions