Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3582963ybh; Tue, 17 Mar 2020 02:49:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vudGVO+GraFETkC2IfOyYds+7ZTxE38yVBPP1+SH5rA8UDco4Eu5VL/dSd1//1KhJb0b+ek X-Received: by 2002:a9d:175:: with SMTP id 108mr3026081otu.68.1584438560665; Tue, 17 Mar 2020 02:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584438560; cv=none; d=google.com; s=arc-20160816; b=PvakJKq39XLtc2ws3GAvt/3IGvqiD2TLiV7BXvr0w3+4gdp9zibjReZut+5UeoU2N0 n8xEFq9kHgWi+rA3dbSSWG9TlsNsNOAGr9GpaK4Sjk2TNO7aX0DfOJ5BUiTmengtmuux 1zzNLo+vMiGay+1vQRdZf+wIfK7DAGJGPcGUPwAbkTOmpxoQj/wCfl3x2TkiksJkL0du uJ/ZdL4wWvUBK+rrrW25S22oUZeYF8euf1Vs0H8TKxuyapgR8OT900HhIogLGiUvRlf6 NNbVpsgW01bcN4kejragn/EMrz0sPp4yFcb28gYL7x95782UuFSM002n7FNUc8Aofu5G nHlg== 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=hPcr43MzGZ0Foe0kJsnlNsRb66BUvnXRThjJua6K2kc=; b=YUM92ZHlWoTx6aoKMdtnc6lPghKam/+u89EOGToEZiJs5pNvekCOPUx+35K5JM792B +LVb1BlcIeK9HGP6ftDetNRQw+GDBu9wcN0lZPdihLlZHDNQrlaG2H+sz6itdHopmu0G MpdBbqlXDwj9ocgXp+4hpC/G9ewFgmqTymD7sVwqoCrLrBJH+UE+b0Y34eYRsfT7zoow 8ZpDaY/2K2S7qfG/h0BuyCBwJ9WhRbDHf2GpU10Swu9bEVSntSSrUTzE3t/0GFY+G9Lx Ea1g7wdDEwaw0WVLFm8ZkYqAoXQpCMHyxhzAgtdkd9QXXjpZ+nzE0HLDcgyIXaAi+NPQ p1JQ== 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 d185si1491892oif.234.2020.03.17.02.49.08; Tue, 17 Mar 2020 02:49:20 -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 S1726112AbgCQJsw (ORCPT + 99 others); Tue, 17 Mar 2020 05:48:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:55052 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgCQJsw (ORCPT ); Tue, 17 Mar 2020 05:48:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7006AAC23; Tue, 17 Mar 2020 09:48:49 +0000 (UTC) Subject: Re: [PATCH RFC v2 12/24] hpsa: use reserved commands To: John Garry , Ming Lei Cc: axboe@kernel.dk, jejb@linux.ibm.com, martin.petersen@oracle.com, bvanassche@acm.org, hch@infradead.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, virtualization@lists.linux-foundation.org, esc.storagedev@microsemi.com, chenxiang66@hisilicon.com, 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: Hannes Reinecke Message-ID: <881b6a9b-2137-946f-a900-5c4e6cf1fe37@suse.de> Date: Tue, 17 Mar 2020 10:48:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/20 10:38 AM, John Garry wrote: > 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. > I will have having a look at the patchset; I thought I did a patch to modify .can_queue so that it would cover only the usable tags, not the reserved ones. Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer