]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: fix discard support regression
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 29 Nov 2016 21:37:30 +0000 (22:37 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 8 Dec 2016 19:13:12 +0000 (14:13 -0500)
commit09d6cdc144f19a6001d8347d81726a5be07edad1
treec8b204186efd6e7e1f12dd85d9aaa2d29f6428ca
parentc0d86af846a5eb233784ebc2d028e576dcd99a55
dm raid: fix discard support regression

Commit 5cf7af41a1 ("dm raid: add raid level takeover support") moved the
configure_discard_support() call from raid_ctr() to raid_preresume().

Enabling/disabling discard _must_ happen during table load (through the
.ctr hook).  Fix this regression by moving the
configure_discard_support() call back to raid_ctr().

Fixes: 5cf7af41a1 ("dm raid: add raid level takeover support")
Cc: stable@vger.kernel.org # 4.8+
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c