Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp273715ybh; Mon, 20 Jul 2020 16:31:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2o9+r/1dUJjuxp11tQNQzHljNS8mM/DRD5Bor/morRKNGM+sZJmh7tHjnzEzaIMr8tA1F X-Received: by 2002:a05:6402:cb9:: with SMTP id cn25mr24205626edb.247.1595287918433; Mon, 20 Jul 2020 16:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595287918; cv=none; d=google.com; s=arc-20160816; b=hUdLfWo0RxY9lMVx/bBXiRuCu7ov3r2WGaiZfeEcd9WKgw1hnDUZ/QEStEK7sjQfHc OVb1m8bLlK16UFWQNOHX90viVAmQoJppFi1rIFmhhVlUTrTHZ30Gy83OIwquEtK/udRk UNywZwx1xtuX7jxdSfijs8JCW0745vdQfYHpA+q3EY6RkxU9IAYWnx25s8/cZP+5lx9/ gIUydFaE1BFbj93LfXsNEy3aT4q/a157rGSJ6qXoeEA6a+OBcEyrSY8JA8PGWD2aEjvT 6S0RVruqlbooeD1D6zS9SS3zmqsFRsyPeu5iP6N3XewaEi/kbuX+tXojVB7a7kDyHlUR JmNQ== 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=sIfyFvfqHZ+qa2NLs8qwPqjhpDOmDh/lGN1827apR70=; b=jddNgyFHb+7QVdkEnLcRVDpvkCdzmfVqYmAccQ7QDVLVNjH/zAca6uedZOJRGP5wcV Csr5camdTO/CC51aSGzIyOGNi+gggCDo+6kdStnbTnlLUZbBKvmPIuiKWwYgZVktoh7Q qf9KW5M9xn9VL8ngJvUWYNUsJ8vnPEgXENAhhk8+nG1BCTVfs+7oCkfx9gqacZEjd6/h l0oUPnBmqTJG4QGOH+d0JDObmqkRgR7BbCiXnq4ixxCWb2cxHP1+NLTITJs3ZY6t9dlT FqwcqlCwVj4oGGcZJeieiEuZX4D5fOuxOoPQM0niOg5mMaA/vOhAa7AX1pEu2hiqNTwq lwtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mf27si11641248ejb.83.2020.07.20.16.31.33; Mon, 20 Jul 2020 16:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727938AbgGTX23 (ORCPT + 99 others); Mon, 20 Jul 2020 19:28:29 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:34165 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbgGTX22 (ORCPT ); Mon, 20 Jul 2020 19:28:28 -0400 Received: by mail-pj1-f67.google.com with SMTP id cv18so575819pjb.1 for ; Mon, 20 Jul 2020 16:28:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sIfyFvfqHZ+qa2NLs8qwPqjhpDOmDh/lGN1827apR70=; b=TSa+g/aS9lBoPbTrtnyroWBL5wXStV41syKfBDDyuuKWmXB6MSXX0OdtIAIIxzDO1M FJiq6E1xNeP0u25DueuNG2YAiku4VaDzwqrO/2rxFkrXnC76yH1RDju4KENpR6dIBBV7 c99rZNPM9XDr/3pY152f+DEnMGaJlN26S7LFAb7y+wPH2t33YMzsEvuwotvvzovByXVU Z/aGH12InnCMaQ59aoAM3SNVOM+i66oYiv28EB/rD3JTDlXAetDvPLutEI1cofslmD7l hw/n1CPbCajJpFhgV3jmwopp0bIoytRpcXbVuBbJywCJTcHU7F6q80BLUc98+pJshoB3 PSAw== X-Gm-Message-State: AOAM530PAGHkSaUffgyXz0Eh8nt/6Sh2gbQR1DqVFvXPA9MMAbr6HFg/ khRbdwMChUWYYvWnKIeKDv4= X-Received: by 2002:a17:90b:390e:: with SMTP id ob14mr1533589pjb.221.1595287708205; Mon, 20 Jul 2020 16:28:28 -0700 (PDT) Received: from ?IPv6:2601:647:4802:9070:81fd:84d6:3c38:f7ef? ([2601:647:4802:9070:81fd:84d6:3c38:f7ef]) by smtp.gmail.com with ESMTPSA id o129sm18689520pfg.14.2020.07.20.16.28.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2020 16:28:27 -0700 (PDT) Subject: Re: [PATCH v15 7/9] nvmet-passthru: Add passthru code to process commands To: Keith Busch , Logan Gunthorpe Cc: Chaitanya Kulkarni , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Stephen Bates , Jens Axboe , Max Gurtovoy , Christoph Hellwig References: <20200716203319.16022-1-logang@deltatee.com> <20200716203319.16022-8-logang@deltatee.com> <20200720141606.GF4627@lst.de> <5cc390cf-9b0b-b48b-7447-37934be51ee0@deltatee.com> <2dc39232-4042-1f93-3dcc-3266e70cf6f0@grimberg.me> <20200720231701.GA682160@dhcp-10-100-145-180.wdl.wdc.com> From: Sagi Grimberg Message-ID: Date: Mon, 20 Jul 2020 16:28:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200720231701.GA682160@dhcp-10-100-145-180.wdl.wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/20 4:17 PM, Keith Busch wrote: > On Mon, Jul 20, 2020 at 05:01:19PM -0600, Logan Gunthorpe wrote: >> On 2020-07-20 4:35 p.m., Sagi Grimberg wrote: >> >>> passthru commands are in essence REQ_OP_DRV_IN/REQ_OP_DRV_OUT, which >>> means that the driver shouldn't need the ns at all. So if you have a >>> dedicated request queue (mapped to the I/O tagset), you don't need the >>> ns->queue and we can lose the ns lookup altogether. > > We still need a request_queue to dispatch the command. I guess you could > make a generic one for the controller that isn't tied to a namespace, > but we lose the fair shared tag allocation. What do you mean fair shared tag allocation?