summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2019-01-18 20:19:26 +0100
committerMike Snitzer <snitzer@redhat.com>2019-02-21 05:24:55 +0100
commit61697a6abd24acba941359c6268a94f4afe4a53d (patch)
tree9c1b1de749c7479a1a9f14392c673f84f4ede9a4 /drivers/md/dm-thin.c
parentdm: update dm_process_bio() to split bio if in ->make_request_fn() (diff)
downloadlinux-61697a6abd24acba941359c6268a94f4afe4a53d.tar.xz
linux-61697a6abd24acba941359c6268a94f4afe4a53d.zip
dm: eliminate 'split_discard_bios' flag from DM target interface
There is no need to have DM core split discards on behalf of a DM target now that blk_queue_split() handles splitting discards based on the queue_limits. A DM target just needs to set max_discard_sectors, discard_granularity, etc, in queue_limits. Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index e83b63608262..0d9ded0f5e50 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -4227,7 +4227,6 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
if (tc->pool->pf.discard_enabled) {
ti->discards_supported = true;
ti->num_discard_bios = 1;
- ti->split_discard_bios = false;
}
mutex_unlock(&dm_thin_pool_table.mutex);