Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp220470ybh; Tue, 10 Mar 2020 23:24:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vucFNPnPwVtrkwBClGRrc1Q+7GPhFFADO62e9FUushmnDFjbEzw7RKUPY8YO++P1GDfpt9+ X-Received: by 2002:a54:4e8d:: with SMTP id c13mr885916oiy.27.1583907857960; Tue, 10 Mar 2020 23:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583907857; cv=none; d=google.com; s=arc-20160816; b=TypEJ0gWQI5Yd/Twm3bnUQxcuhYyKyEiCLsU36erP6Kbr59JUhrSB2Bs7krut6iCRP ycEIksQWuqUn7W0AiZ5ZL2OHohy299P6bqkRclxs4oNG52Hg9g41yW1VA/YvrFnS4ncu BW7DBz/XraEkQGYxjIopzpDuxLOOjRYH3s/B5DBcOnsDc5i0fVJawL6r/8nB+R/g1EHT mOeZN/+Sp7RtyAXGEdjAb9qqvnu5cW4ThV0UEPMvnypPAxjErSG5IDZIaktjXsPBfGFi 5j2LKa9NhRZIKIbvd4Kv0lCBp31ByRZJ6G8fsI7D/69q1xn39oSyqA8116yOM8gAtaR8 wZVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pf947Sz8KajuMchFemWX1Gjf7sTMlNiajIDEANCcWHc=; b=DbfWA4vZLYf+etDD0YCpOth8mDy8S5gR6SirRpyBTaPWlgXxqOs3+jkRwidOsWh9tk rkBZe5KMuUVllKBHfm0Qpztv+7dQcVivvFA+ie730InQX2BQlSspPmY5VbrBzp0HKATI ye4xEVIOyzNjRqvK06B4Hevq/6Vt8IbuE2k8xyyEiC5N8ujprXwPhvxV2AAAPYqKnMkl M2YYycfJO689qHQdZUCkuNi1hn9PT+AdcOYKW3C0s+GEXzJBV09YzBwBMQTQ0r/IL+wi +JxN/CxUz7tlSetCP4tyDaCPK1iG2SuKUuxO1QFRY67DY/qFRJBQ3NSNI6oTHKTef1KC oPTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lWwM3q+w; 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 c203si650296oib.273.2020.03.10.23.24.05; Tue, 10 Mar 2020 23:24:17 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lWwM3q+w; 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 S1728171AbgCKGWp (ORCPT + 99 others); Wed, 11 Mar 2020 02:22:45 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49002 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbgCKGWo (ORCPT ); Wed, 11 Mar 2020 02:22:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pf947Sz8KajuMchFemWX1Gjf7sTMlNiajIDEANCcWHc=; b=lWwM3q+wSWfi640WOScA7e/8Ff bzpTUf1/fPZx31bOeQW126dE72TeZqb7YX3wbzSYKbh/h51bj9HZiTPzFsemYAGr5daIQMGtzB558 bBD3oFuz3vrYx1G3GkQ1Bzs/w+3/dUQwnJu6fo/6RbAUcFFIGlSviUGWHH8WWNAWZAoxYA+ubqBdM 0FNsqU3cBEZ1b+nOigEMUE5KXNeSgwISnCQKu0QqLGxSRvUK+6Dw0N3vRYruheqYFDwjQZnh52qHF mE7APR5cTlxmp/a80cO1ifELTyeq//ECkDOMnj/ezFRFhz8S4WGKI7dFyQvA7KMVWnersGOqE5odO HYyvXOZA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jBulA-0001TU-6S; Wed, 11 Mar 2020 06:22:28 +0000 Date: Tue, 10 Mar 2020 23:22:28 -0700 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , axboe@kernel.dk, jejb@linux.ibm.com, martin.petersen@oracle.com, hare@suse.de, ming.lei@redhat.com, bvanassche@acm.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 Subject: Re: [PATCH RFC v2 02/24] scsi: allocate separate queue for reserved commands Message-ID: <20200311062228.GA13522@infradead.org> References: <1583857550-12049-1-git-send-email-john.garry@huawei.com> <1583857550-12049-3-git-send-email-john.garry@huawei.com> <20200310183243.GA14549@infradead.org> <79cf4341-f2a2-dcc9-be0d-2efc6e83028a@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79cf4341-f2a2-dcc9-be0d-2efc6e83028a@huawei.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 09:08:56PM +0000, John Garry wrote: > On 10/03/2020 18:32, Christoph Hellwig wrote: > > On Wed, Mar 11, 2020 at 12:25:28AM +0800, John Garry wrote: > > > From: Hannes Reinecke > > > > > > Allocate a separate 'reserved_cmd_q' for sending reserved commands. > > > > Why? Reserved command specifically are not in any way tied to queues. > > . > > > > So the v1 series used a combination of the sdev queue and the per-host > reserved_cmd_q. Back then you questioned using the sdev queue for virtio > scsi, and the unconfirmed conclusion was to use a common per-host q. This is > the best link I can find now: > > https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg83177.html That was just a question on why virtio uses the per-device tags, which didn't look like it made any sense. What I'm worried about here is mixing up the concept of reserved tags in the tagset, and queues to use them. Note that we already have the scsi_get_host_dev to allocate a scsi_device and thus a request_queue for the host itself. That seems like the better interface to use a tag for a host wide command vs introducing a parallel path.