OSDN Git Service

mmc: core: Imply IOSCHED_BFQ
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 31 Jan 2023 08:47:42 +0000 (09:47 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 Feb 2023 15:02:02 +0000 (16:02 +0100)
If we enable the MMC/SD block layer, use Kconfig to imply the BFQ
I/O scheduler.

As all MMC/SD devices are single-queue, this is the scheduler that
users want so let's be helpful and make sure it gets
default-selected into a manual kernel configuration. It will still
need to be enabled at runtime (usually with udev scripts).

Cc: linux-block@vger.kernel.org
Cc: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230131084742.1038135-1-linus.walleij@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/Kconfig

index e9e9d31..bf4e29e 100644 (file)
@@ -37,6 +37,7 @@ config PWRSEQ_SIMPLE
 config MMC_BLOCK
        tristate "MMC block device driver"
        depends on BLOCK
+       imply IOSCHED_BFQ
        default y
        help
          Say Y here to enable the MMC block device driver support.