diff options
author | Mike Snitzer <snitzer@redhat.com> | 2017-11-16 16:22:42 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-11-16 22:33:54 +0100 |
commit | 7dea378b23fdc5003379615fc579dbf987ed8128 (patch) | |
tree | 30b4da041c670ce537d0b84dcb7f43fe91f571bd /drivers/md/dm-raid.c | |
parent | dm: discard support requires all targets in a table support discards (diff) | |
download | linux-7dea378b23fdc5003379615fc579dbf987ed8128.tar.xz linux-7dea378b23fdc5003379615fc579dbf987ed8128.zip |
dm: do not set 'discards_supported' in targets that do not need it
The DM target's 'discards_supported' flag is intended to act as an
override. Meaning, even if the underlying storage doesn't support
discards the DM target will.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r-- | drivers/md/dm-raid.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index a25eebd98996..ea6eb96b5012 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -2887,9 +2887,6 @@ static void configure_discard_support(struct raid_set *rs) bool raid456; struct dm_target *ti = rs->ti; - /* Assume discards not supported until after checks below. */ - ti->discards_supported = false; - /* * XXX: RAID level 4,5,6 require zeroing for safety. */ @@ -2914,9 +2911,6 @@ static void configure_discard_support(struct raid_set *rs) } } - /* All RAID members properly support discards */ - ti->discards_supported = true; - /* * RAID1 and RAID10 personalities require bio splitting, * RAID0/4/5/6 don't and process large discard bios properly. |