Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1740283

Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq
Date 2017-09-27 01:50 +0200
Message-ID <uu7LY-2Wl-3@gated-at.bofh.it> (permalink)
References <usvz3-68T-3@gated-at.bofh.it> <usvz4-68T-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Sep 22, 2017 at 2:36 PM, Adrian Hunter <adrian.hunter@intel.com> wrote:

> Until mmc has blk-mq support fully implemented and tested, add a
> parameter use_blk_mq, default to false unless config option MMC_MQ_DEFAULT
> is selected.
>
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>

> +config MMC_MQ_DEFAULT
> +       bool "MMC: use blk-mq I/O path by default"
> +       depends on MMC && BLOCK

I would say:
default y

Why not. SCSI is starting to enable this by default so IMO we should
not take the
intermediate step of having this as optional. Otherwise it never gets tested.

Set it to default y and after two kernel releases, if nothing happens, we simply
delete the old block layer path.

> +#ifdef CONFIG_MMC_MQ_DEFAULT
> +bool mmc_use_blk_mq = true;
> +#else
> +bool mmc_use_blk_mq = false;
> +#endif
> +module_param_named(use_blk_mq, mmc_use_blk_mq, bool, S_IWUSR | S_IRUGO);

Are people really modprobing this so it needs to be a module parameter?

Maybe I'm the only developer stupid enough to just recompile and reboot
the whole kernel, I guess this makes sense if you're testing on the same
machine you're developing on (no cross-compilation and remote target)
which I guess is what some Intel people are doing with their laptops.

Yours,
Linus Walleij

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V9 09/15] mmc: core: Add parameter use_blk_mq Adrian Hunter <adrian.hunter@intel.com> - 2017-09-22 14:50 +0200
  Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq Linus Walleij <linus.walleij@linaro.org> - 2017-09-27 01:50 +0200
    Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq Adrian Hunter <adrian.hunter@intel.com> - 2017-09-27 14:10 +0200
      Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq Linus Walleij <linus.walleij@linaro.org> - 2017-09-27 21:50 +0200
    RE: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq Avri Altman <Avri.Altman@wdc.com> - 2017-09-27 15:00 +0200
  Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq Ulf Hansson <ulf.hansson@linaro.org> - 2017-10-02 10:40 +0200

csiph-web