Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970684AbdIZXmV (ORCPT ); Tue, 26 Sep 2017 19:42:21 -0400 Received: from mail-it0-f44.google.com ([209.85.214.44]:49022 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968440AbdIZXmT (ORCPT ); Tue, 26 Sep 2017 19:42:19 -0400 X-Google-Smtp-Source: AOwi7QDF3lLrngdIcNCfdmx23Jm0Of1IZOTSn53VNNBKMMFEVLUU3GUKmxJn+ECJlCT/0L1jqI7jLztgPhJopiNZZjg= MIME-Version: 1.0 In-Reply-To: <1506083824-4024-10-git-send-email-adrian.hunter@intel.com> References: <1506083824-4024-1-git-send-email-adrian.hunter@intel.com> <1506083824-4024-10-git-send-email-adrian.hunter@intel.com> From: Linus Walleij Date: Wed, 27 Sep 2017 01:42:17 +0200 Message-ID: Subject: Re: [PATCH V9 09/15] mmc: core: Add parameter use_blk_mq To: Adrian Hunter Cc: Ulf Hansson , linux-mmc , linux-block , linux-kernel , Bough Chen , Alex Lemberg , Mateusz Nowak , Yuliy Izrailov , Jaehoon Chung , Dong Aisheng , Das Asutosh , Zhangfei Gao , Sahitya Tummala , Harjani Ritesh , Venu Byravarasu , Shawn Lin , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 38 On Fri, Sep 22, 2017 at 2:36 PM, Adrian Hunter 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 > +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