diff options
author | Mike Snitzer <snitzer@redhat.com> | 2017-11-16 18:22:42 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-11-17 00:33:54 +0300 |
commit | 7dea378b23fdc5003379615fc579dbf987ed8128 (patch) | |
tree | 30b4da041c670ce537d0b84dcb7f43fe91f571bd /drivers/md/dm-era-target.c | |
parent | 8a74d29d541cd86569139c6f3f44b2d210458071 (diff) |
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-era-target.c')
-rw-r--r-- | drivers/md/dm-era-target.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-era-target.c b/drivers/md/dm-era-target.c index ba84b8d62cd0..73a5c198113a 100644 --- a/drivers/md/dm-era-target.c +++ b/drivers/md/dm-era-target.c @@ -1513,7 +1513,6 @@ static int era_ctr(struct dm_target *ti, unsigned argc, char **argv) ti->flush_supported = true; ti->num_discard_bios = 1; - ti->discards_supported = true; era->callbacks.congested_fn = era_is_congested; dm_table_add_target_callbacks(ti->table, &era->callbacks); |