dm thin: unroll issue_discard() to create longer discard bio chains
authorJoe Thornber <ejt@redhat.com>
Wed, 4 May 2016 18:12:42 +0000 (14:12 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 13 May 2016 13:04:20 +0000 (09:04 -0400)
commit202bae52934d4eb79ffaebf49f49b1cc64d8e40b
tree41d78f7ee52b69471b77ac74d07ac4ae212a2c49
parent3dba53a958a758fe7bed5002f6a2846e1acefe8e
dm thin: unroll issue_discard() to create longer discard bio chains

There is little benefit to doing this but it does structure DM thinp's
code to more cleanly use the __blkdev_issue_discard() interface --
particularly in passdown_double_checking_shared_status().

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c