]> 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)
commit5ff1552c34a2fe6555f8348c1ca44ab2ecf6b57e
treeb5e99cfda4c152744acffce72df6d9508192cf93
parentcf7d4dbd9048f0c7909d249096fac868498644d0
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