Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1260748iog; Tue, 14 Jun 2022 02:32:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tV4Dy8GptiyJGEPbSZyP5CaNlykx0oqMyAoGpm0WiHqCThPjlygSrv0RIaTs7FnhKt0eFg X-Received: by 2002:a17:902:8e8b:b0:168:a135:d636 with SMTP id bg11-20020a1709028e8b00b00168a135d636mr3398138plb.140.1655199178696; Tue, 14 Jun 2022 02:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655199178; cv=none; d=google.com; s=arc-20160816; b=jc5tCP2LkbQ+gpzH26BN8HaB4JQGGB9FA7vGsaQ6ePkupfGVNqgUGHX9O1ohFCD4sW PYlMjG5SSzsnIXr5gDJ7ShR72Fj29G8q1koEq7puLcD2XWKBvxNxSmbIY14oAbjSdp0f RVirLKyB2cuTRxCAVzJQ4hm8S3cTZLbPyErKvHTUNAaaxkMQbZgvnEnwGb7PDOuaiyki 564gJtgUIu4ulcNHsCsPq6sUzdnRHFGUlE8JyEUK2v32qpc7oK5QcW4PpYLGqKldADlz EFJRVDS7I4m9NyOXW/cesbuweUUHFBQbXc/dlmzzSvvcz87aY8mrgEkd9LpQ52spWsdD D8ng== 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=VqvAB0uWdkdy1mv7c/S6PMsSqlAMHrDU72zzy4RvlIE=; b=mpTCrIj0wNoZlcx910dSFTABs3/zDIvtL1ZRvjPZqTUMFGfhIuyGCBEqEOoqR8QSeI vNvmhl2V1JY23ZONiinRQAHbzKu3tgt5xKqPvkWZSX7tGnSy05yrQD7wp3LU/duvzyte pG9JwNyiX+1DjHj3rlwQhz6eY/O65L/VM16o13k0RzgQ02DW6f7SliwzRGmGcbLSwQj9 CyKHdwfx3wG60QnkYt9uQ2ZtI19s0Vl4sZ/QyqG6cc4+/9LmJCctyvIs/Fd/Ftu/oOiu Bl01wkufbXpGs+AkEJ/ye2zu58CgydBzro3Kmi6SUmlVr0UNMstc1pXM93vNXy556sKM C5lw== 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 n13-20020a17090ac68d00b001c73b8066e0si10113313pjt.74.2022.06.14.02.32.45; Tue, 14 Jun 2022 02:32:58 -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 S233180AbiFNJ0P (ORCPT + 99 others); Tue, 14 Jun 2022 05:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbiFNJ0O (ORCPT ); Tue, 14 Jun 2022 05:26:14 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98A5B7FC; Tue, 14 Jun 2022 02:26:12 -0700 (PDT) Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LMjjW2RRcz67vDG; Tue, 14 Jun 2022 17:26:07 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 14 Jun 2022 11:26:10 +0200 Received: from [10.195.33.253] (10.195.33.253) 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.2375.24; Tue, 14 Jun 2022 10:26:09 +0100 Message-ID: <3aee8ffe-d8c6-71b2-8725-028406efef5c@huawei.com> Date: Tue, 14 Jun 2022 10:29:16 +0100 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 RFC v2 01/18] blk-mq: Add a flag for reserved requests To: Christoph Hellwig CC: , , , , , , , , , , References: <1654770559-101375-1-git-send-email-john.garry@huawei.com> <1654770559-101375-2-git-send-email-john.garry@huawei.com> <20220614064303.GA31683@lst.de> From: John Garry In-Reply-To: <20220614064303.GA31683@lst.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.195.33.253] X-ClientProxiedBy: lhreml746-chm.china.huawei.com (10.201.108.196) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 14/06/2022 07:43, Christoph Hellwig wrote: > On Thu, Jun 09, 2022 at 06:29:02PM +0800, John Garry wrote: >> Add a flag for reserved requests so that drivers may know this for any >> special handling. >> >> The 'reserved' argument in blk_mq_ops.timeout callback could now be >> replaced by using this flag. > And we should probably do that ASAP, independent of the rest of this > series. We only have 2x users of the 'reserved' arg for 11x implementations of blk_mq_ops.timeout: - mtip32xx.c - scsi_lib.c scsi_lib.c is dubious as currently scsi does use reserved commands. So we really only have 1x. I'd be happy to take any spin-off series to make this one more manageable, but is just removing an arg a strong enough reason for that? That reserved arg is passed around a lot in the blk-mq iter functions, so probably yes. > Otherwise looks good: > > Reviewed-by: Christoph Hellwig Thanks