Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3575626ybh; Tue, 17 Mar 2020 02:39:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtMLQJLyEjVT9DJg0NOMHSIkc+XHLdxdAxTVJ2ks/tQWzeIsYSr3WQ9IdStubY+SQ3ULlRF X-Received: by 2002:a9d:2c69:: with SMTP id f96mr2831295otb.62.1584437952285; Tue, 17 Mar 2020 02:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584437952; cv=none; d=google.com; s=arc-20160816; b=WzM4BpZSlNDmoa7lg0lOcOerUxHIv3zP7s2d7wRr53bC0WBZbBWo7+I8oWb8Qk8vw1 sWWaF2ujuXqlliuNnXnpwYHtxd4Bo3ugfR4dPOCpa7SqF+S7SWEui1mcWsDOuvt3Q0lx si39fAO6NzfJgSjgCX9ztI2tZIYa5bfdJVDn488gvhGnH67t8m4iuy0gUmDXoeuRsR8i Asc21iYKxQBYC1vWil8fM8eXUsmMVLVIp3090Njjp4/qqqkovPwUV+352xSpHbKUqebR kSESfJaX0MNXJNygFV/PGrkB59mbvYrs0hJqE/0SQ3RhtQTfKAAMEwNfwCczCDqdNlLc 9iWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=EwOCiVGqpaFJrxAbgOFD2vdRXbLq9vKq4WqXbSVE9BA=; b=CLbZC8RPiQMPczoAxiOWVnBcCUZT2u73A/c+e57N7fYIUmzLwltvptGjx39qXHiFjD ishOPUY79ejf+HtEWf6rN5RFVtj+PIwZKhwISTQFnabIqMbXiLw/rLwn2bmYwGxxihHW E3rqT9CQB6dBpHCJ0WRHAoUipIv7imEQdm7aDnFBT7hjvi09fRz5FbBjU8ckmF3yUIYU 3Wj8RGuetlxPwRMEEPvGoAK28Lxu1Kx33GiINwcC1wL9ncUKMPo3ny+BSvvfhRuzUs5R n4Na2R7+IzBM3StXxfD/jWlB5lzyVPpBIyYkyzPXBBAk1WrTGMXfibGvc8Gm4nWT7Uai cSpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b204si1408304oif.69.2020.03.17.02.39.00; Tue, 17 Mar 2020 02:39:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726207AbgCQJiY (ORCPT + 99 others); Tue, 17 Mar 2020 05:38:24 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2567 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726121AbgCQJiY (ORCPT ); Tue, 17 Mar 2020 05:38:24 -0400 Received: from lhreml704-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 35B138D42154FB9B4054; Tue, 17 Mar 2020 09:38:22 +0000 (GMT) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by lhreml704-cah.china.huawei.com (10.201.108.45) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 17 Mar 2020 09:38:21 +0000 Received: from [127.0.0.1] (10.47.11.44) 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.1713.5; Tue, 17 Mar 2020 09:38:20 +0000 Subject: Re: [PATCH RFC v2 12/24] hpsa: use reserved commands To: Ming Lei CC: , , , , , , , , , , , , Hannes Reinecke References: <1583857550-12049-1-git-send-email-john.garry@huawei.com> <1583857550-12049-13-git-send-email-john.garry@huawei.com> <20200311081059.GC31504@ming.t460p> From: John Garry Message-ID: Date: Tue, 17 Mar 2020 09:38:10 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20200311081059.GC31504@ming.t460p> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.11.44] X-ClientProxiedBy: lhreml721-chm.china.huawei.com (10.201.108.72) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/03/2020 08:10, Ming Lei wrote: >> ands(struct ctlr_info *h) >> @@ -5803,6 +5803,7 @@ static int hpsa_scsi_host_alloc(struct ctlr_info *h) >> sh->max_lun = HPSA_MAX_LUN; >> sh->max_id = HPSA_MAX_LUN; >> sh->can_queue = h->nr_cmds - HPSA_NRESERVED_CMDS; >> + sh->nr_reserved_cmds = HPSA_NRESERVED_CMDS; > Now .nr_reserved_cmds has been passed to blk-mq, you need to increase > sh->can_queue to h->nr_cmds, because .can_queue is the whole queue depth > (include the part of reserved tags), otherwise, IO tags will be > decreased. > Sounds correct. Cheers, John > Not look into other drivers, I guess they need such change too. > > Thanks, > Ming > > .