Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3285204pxp; Tue, 22 Mar 2022 16:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCY65IVz/1wk+azNNAUEOFlqXkB6I14c43Wu8MyaAcc+vSY8Bg3fAmEIbUEkVcPho8XqAQ X-Received: by 2002:a17:903:41cf:b0:154:25bf:7d0f with SMTP id u15-20020a17090341cf00b0015425bf7d0fmr20146811ple.41.1647991725449; Tue, 22 Mar 2022 16:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647991725; cv=none; d=google.com; s=arc-20160816; b=L3GcAF5uvIFXo4J+haTxq6bklPfG/9L4Bxn/VT5HZKksrXpzRd+er+hY/oc28/kV4l W50wPvoCKZhh1JzqNbcO/n1Z68UcdhhCLFTnrCp+G/kFk3OjJYBEz6SwM70lN1/+fmpW tGxSdcZriz65cDSSSJXIsRwe1da94b+dyaxOMF0wcYbirfoIE6Wpe5auFZ84UlY3ncuH SDVgmtTPSMyZo1EikGnQ2NiFNKPMW2pMlF+gOPmLE4BgLQ6Ta5Eu0C9z6H4jfzSaEGks qmFpqUMnbhNlylRXG3swpuofhCl/z7dpnIO4xytl2l5gw39wJJyefWMkYsE0iy0lZkRU WHUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=qtXyiR5tKhrO5+84fMbWJokLfeo+GeTJF7hpwHbTlQ8=; b=SRbnfx648dPdwUC4yFYilwm5bSvbU155lTcWTcTy3OlYL+3FpHXzF465B+JmrYeaGJ GQ0HnQVe34djZhsaMUFdWcVyOmGhgqVMIThENzRNL6P/MuyZK5RD/F5/QL1zPY/Y+8mC 3QrDZEyJ5HflakcM8d7mw0zctpYJBn+ycGyqUznZi6UHUjGDY2x5Zu8LeAgKQuRkKDc+ rljYGjkvn5UZ1aXQXclqvs9OpEVwPUzVgUwkB3mG0EPeAMHcM2wQfCovTVXb+ddR+4ox ObFN/Z8zxgmLCFOf6Ypm77pVonZoZQnadBjeZkz0qoZEyIxSILwcYurW0i4ksAR4gI9u HZzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca11-20020a056a00418b00b004fa843103dbsi4674969pfb.193.2022.03.22.16.28.30; Tue, 22 Mar 2022 16:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234234AbiCVLew (ORCPT + 99 others); Tue, 22 Mar 2022 07:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234228AbiCVLeu (ORCPT ); Tue, 22 Mar 2022 07:34:50 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3224165B6; Tue, 22 Mar 2022 04:33:22 -0700 (PDT) Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KN8SY1MNkz67pCt; Tue, 22 Mar 2022 19:31:09 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 22 Mar 2022 12:33:19 +0100 Received: from [10.47.85.68] (10.47.85.68) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 22 Mar 2022 11:33:18 +0000 Message-ID: Date: Tue, 22 Mar 2022 11:33:17 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 01/11] blk-mq: Add blk_mq_init_queue_ops() To: Christoph Hellwig CC: , , , , , , , , , , , , , References: <1647945585-197349-1-git-send-email-john.garry@huawei.com> <1647945585-197349-2-git-send-email-john.garry@huawei.com> <20220322111848.GA29270@lst.de> From: John Garry In-Reply-To: <20220322111848.GA29270@lst.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.85.68] X-ClientProxiedBy: lhreml730-chm.china.huawei.com (10.201.108.81) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/03/2022 11:18, Christoph Hellwig wrote: > On Tue, Mar 22, 2022 at 06:39:35PM +0800, John Garry wrote: >> Add an API to allocate a request queue which accepts a custom set of >> blk_mq_ops for that request queue. >> >> The reason which we may want custom ops is for queuing requests which we >> don't want to go through the normal queuing path. > > Eww. I really do not think we should do separate ops per queue, as that > is going to get us into a deep mess eventually. > Yeah... so far (here) it works out quite nicely, as we don't need to change the SCSI blk mq ops nor allocate a scsi_device - everything is just separate. The other method mentioned previously was to add the request "reserved" flag and add new paths in scsi_queue_rq() et al to handle this, but that gets messy. Any other ideas ...? Cheers, John