summaryrefslogtreecommitdiff
path: root/drivers/memory
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-05-04 22:05:44 +0300
committerMike Snitzer <snitzer@redhat.com>2016-05-13 16:03:52 +0300
commit13e4f8a695aa1dc7c94525047fc2ffb9abc8125e (patch)
treec64473286e7bba7634ad461c6f283d3e497e8dde /drivers/memory
parent4c9971ca6a172e70f52a7f9b6796e843c3f70293 (diff)
downloadlinux-13e4f8a695aa1dc7c94525047fc2ffb9abc8125e.tar.xz
dm thin: remove __bio_inc_remaining() and switch to using bio_inc_remaining()
DM thinp's use of bio_inc_remaining() is critical to ensure the original parent discard bio isn't completed before sub-discards have. DM thinp needs this due to the extra quiescing that occurs, via multiple DM thinp mappings, while processing large discards. As such DM thinp must build the async discard bio chain after some delay -- so bio_inc_remaining() is used to enable DM thinp to take a reference on the original parent discard bio for each mapping. This allows the immediate use of bio_endio() on that discard bio; but with the understanding that the actual completion won't occur until each of the sub-discards' per-mapping references are dropped. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Acked-by: Joe Thornber <ejt@redhat.com>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions