]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95fdb48170eecc330192e0e23c92ec280aefe7eb
treeb5e99cfda4c152744acffce72df6d9508192cf93
parent7f78f457bf5574fc64287627b41bd1d06dba4c41
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