Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp382137rwi; Thu, 27 Oct 2022 02:33:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7JHTKPgDDBMta4w4Df9x66G3nh64j8SDpbcxJpcHikzGJM5otxh7D5LK0cirH7isv5L+OK X-Received: by 2002:a17:902:c7c4:b0:186:5ebe:38e with SMTP id r4-20020a170902c7c400b001865ebe038emr39614330pla.33.1666863224208; Thu, 27 Oct 2022 02:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666863224; cv=none; d=google.com; s=arc-20160816; b=ULzTczsA8O0w28qYY+KozAj1q7lJLulOzLpRFLV9U/z4E/MvHmsZ0ECkxU4P8CnFQ2 DJ6jB3d9O2nYoAaj3c9EvjVBnMH2ZFT0T0P9VYbKJb71OpRZkImNT7xqCAlQBcI2wIwK 7tGHPkYha7LdHnAdGzPTZ9MXe1otMKj+3A7MTCfzBCTcKD5ejEJid4ISFojrFjVbYGQE MBzybRRhnPavQGQSl2XClVjGHr17AQccCfeBpAmE9BNDpVfMrCKJKZDrrBRiBwjRvDMP hyZbDLSf1R93DlJwbhmGmNN7Tb7xaMv50svj6pZfap2cZxPGcKgBY8DEgAAeRbExo1r/ ZmRA== 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=GiC8BoVQ/lLUzO2hUimFiH5pAvwSPMsoqAgjWi3G9tA=; b=u6HvusNTcr/KpAdZ9Gt5WTGOP+hr/thrKh1gTuNgVcdp+DdYBsm0qyN+M/k7DdeOHd 0VX0a7PN8oKhedR4yy1iVaZuD35zUvZDZogqJwFS3i2xGkHgrvr8IH515DerR/LsTwgy cimcCdKQAf1adLVDAdFLf85BGr1pq4DpEb3Y2LxbU9j3WlelLpzvBimtgOduv4g/bxGO X3AqMy1ARu9y210IGTJokngI0cJV5uws/LFPJIjX2GVIgWataNfsijuvwFwjnaTcjIQU PGggtR/6VyUJ5rETbA49WrDNzv7KIFgM9ZKuiBKr13EuVV5hCmAOKF2UowCRMeRyqeoU lb7g== 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 q6-20020a056a00088600b0056c72071d3esi1324322pfj.235.2022.10.27.02.33.32; Thu, 27 Oct 2022 02:33:44 -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 S235420AbiJ0JMo (ORCPT + 99 others); Thu, 27 Oct 2022 05:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235376AbiJ0JMR (ORCPT ); Thu, 27 Oct 2022 05:12:17 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CCDD925A0; Thu, 27 Oct 2022 02:11:11 -0700 (PDT) Received: from frapeml100004.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Myfvn3yM4z67cQ8; Thu, 27 Oct 2022 17:07:33 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by frapeml100004.china.huawei.com (7.182.85.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 27 Oct 2022 11:11:09 +0200 Received: from [10.195.32.169] (10.195.32.169) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 27 Oct 2022 10:11:09 +0100 Message-ID: Date: Thu, 27 Oct 2022 10:11:09 +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 v3 03/22] scsi: core: Implement reserved command handling To: Damien Le Moal , , , , , , , , , CC: , , , , References: <1666693096-180008-1-git-send-email-john.garry@huawei.com> <1666693096-180008-4-git-send-email-john.garry@huawei.com> From: John Garry In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.195.32.169] X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500003.china.huawei.com (7.191.162.67) 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_H2,SPF_HELO_NONE,SPF_PASS 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 > >> device_initialize(&shost->shost_gendev); >> dev_set_name(&shost->shost_gendev, "host%d", shost->host_no); >> shost->shost_gendev.bus = &scsi_bus_type; >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c >> index 39d4fd124375..a8c4e7c037ae 100644 >> --- a/drivers/scsi/scsi_lib.c >> +++ b/drivers/scsi/scsi_lib.c >> @@ -1978,6 +1978,8 @@ int scsi_mq_setup_tags(struct Scsi_Host *shost) >> tag_set->nr_hw_queues = shost->nr_hw_queues ? : 1; >> tag_set->nr_maps = shost->nr_maps ? : 1; >> tag_set->queue_depth = shost->can_queue; >> + tag_set->reserved_tags = shost->nr_reserved_cmds; >> + > Why the blank line ? > I don't think that it is required, I can remedy. >> tag_set->cmd_size = cmd_size; Thanks, John