dm: clear all discard attributes in queue_limits when discards are disabled
authorMike Snitzer <snitzer@redhat.com>
Thu, 16 Nov 2017 20:42:26 +0000 (15:42 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 16 Nov 2017 21:33:55 +0000 (16:33 -0500)
commit5d47c89f29eab6e9e224d7ac8c0baf4da72c9493
treeb5e99cfda4c152744acffce72df6d9508192cf93
parent7dea378b23fdc5003379615fc579dbf987ed8128
dm: clear all discard attributes in queue_limits when discards are disabled

Otherwise, it can happen that the QUEUE_FLAG_DISCARD isn't set but the
various discard attributes (which get exposed via sysfs) may be set.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-table.c