]> git.baikalelectronics.ru Git - kernel.git/commit
dm linear: fix linear_end_io conditional definition
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 11 Oct 2018 02:45:30 +0000 (11:45 +0900)
committerMike Snitzer <snitzer@redhat.com>
Thu, 11 Oct 2018 03:22:24 +0000 (23:22 -0400)
commite90b419a6a014c50aecb7d30f65403d22da62860
treeec3d4b6b6432a68c2ca3808961094e486e87a590
parentc962f780c6e56711379048e1422416240bccd82c
dm linear: fix linear_end_io conditional definition

The dm-linear target is independent of the dm-zoned target. For code
requiring support for zoned block devices, use CONFIG_BLK_DEV_ZONED
instead of CONFIG_DM_ZONED.

While at it, similarly to dm linear, also enable the DM_TARGET_ZONED_HM
feature in dm-flakey only if CONFIG_BLK_DEV_ZONED is defined.

Fixes: c962f780c6e56 ("dm linear: eliminate linear_end_io call if CONFIG_DM_ZONED disabled")
Fixes: fd7063b3c0c82 ("dm linear: add support for zoned block devices")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-flakey.c
drivers/md/dm-linear.c