block: force select mq-deadline for zoned block devices
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 4 Jun 2019 07:23:40 +0000 (16:23 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Jun 2019 09:00:31 +0000 (03:00 -0600)
In most use cases of zoned block devices (aka SMR disks), the
mq-deadline scheduler is mandatory as it implements sequential write
command processing guarantees with zone write locking. So make sure that
this scheduler is always enabled if CONFIG_BLK_DEV_ZONED is selected.

Tested-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/Kconfig

index 1b220101a9cb6d2cb64d38b3c93713ea03243981..2466dcc3ef1dc55bc16220b65ce9eb8cd39d83f4 100644 (file)
@@ -73,6 +73,7 @@ config BLK_DEV_INTEGRITY
 
 config BLK_DEV_ZONED
        bool "Zoned block device support"
+       select MQ_IOSCHED_DEADLINE
        ---help---
        Block layer zoned block device support. This option enables
        support for ZAC/ZBC host-managed and host-aware zoned block devices.