Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp311568ybh; Mon, 20 Jul 2020 17:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6rwqGiTWkmcNXpiscTuP3XfQiN253RpdDQCqM5YKRc7s1neYexgdJgGih8jaA2E+lYRc1 X-Received: by 2002:a17:906:6446:: with SMTP id l6mr24211940ejn.184.1595292152713; Mon, 20 Jul 2020 17:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595292152; cv=none; d=google.com; s=arc-20160816; b=AH3/geNdibWmRp4rkugQoVfOyZWWLEAt5YAq7diBRp2/EGaHQMetnRqyg7RHwoVpMN isq2FJuJEKf0nUV01cetfhbgThT+7LqLCUuKBqZeA00s45H9ZVyhE6WK/apvMh4HAkTb XZYQ4vM8TX78rdtmhkDnFynvGfRbSfz0eiAjf5mBKm3ojjzTYRaMzduGaRdAQn/Q58il iIPrVI2zx5xuvMXNUJ+d7eOEE+uWp8ii6n3nuGaigpyhNJigxFjN3jPyfL3rH30QUDMj QvHqfPSwMI+91xbsUChgdCdzauVp07RYu66EjEWcarHiUMTD7+0hHOPrbipfI1pEQ7Xu KhRQ== 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=WIattoPaCAsVucZKkhcZ7N2CYGctJaZRL7pAstTnc94=; b=dtmg3XGEaB+u6ZzRTqwg0imbI394vsQjT6ORgqF2ln3WcGh4eP0FCppRtvc9m1L3oI R3nGEMrs+zvHQyLxTWo8uATUwqT3pDp5cNMhdqEy0XNSNzrVq6bwl0UFpZ1JlXE/FFG+ 2bi7tM74c9FAbn35w6X2qXUi9t+VG0A6aDDhVsneJNEBFzEBBTqXBms57/B0PemWRsPQ Mpp0WRsN3p0yEt00Ro9LNUnY48spuA8MjXBASkqJ1h3+sk6orhqT2L6hy5/n42LhW6QV 1fLMMCQxkY1ZP1/9CrWRUymOhnDqwdDJq1KSIHSoi2rO8Ky2QcXQFcRmbclCg7Zy9Cw9 0KRQ== 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 lm14si8198663ejb.335.2020.07.20.17.42.09; Mon, 20 Jul 2020 17:42:32 -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 S1728289AbgGUAjP (ORCPT + 99 others); Mon, 20 Jul 2020 20:39:15 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42355 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728251AbgGUAjM (ORCPT ); Mon, 20 Jul 2020 20:39:12 -0400 Received: by mail-wr1-f66.google.com with SMTP id o11so19488985wrv.9 for ; Mon, 20 Jul 2020 17:39:11 -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=WIattoPaCAsVucZKkhcZ7N2CYGctJaZRL7pAstTnc94=; b=mMlnHjPQ3UsJ3t29igdDxwuxhEzP+e38y7ya8zDFEG0XYo2pcvBaa4LKv+W0MSQjCU JiNSg0L8oTEr1Fa4jm7Tq8GG36nQL+KO99HONLvJux7tM+OPMWIMQ5HMQW5BCacw243k W6AP92mt3iiraPf2Ut3iVH1TfyNLHIbqBN939rYeC1W6ow8MRRhDkbhdgO3/zaWD/yoa UNxJ/Gbg2VTsKOVPTA9Id0ANloAGA8wmF39i0k12dZjWJJo6iZTEgVPaj1wcrj4flHaB G4gHqAvOqWXPnhNvqDqXKKhTIJPDPm/QpLs4/KrXH7s19yKbfzb+V/X6t4lDniDG5iRN rmJg== X-Gm-Message-State: AOAM5318AwyveSVLbuPA9cMJPdTTVrZ0k+SuyoxKd2RpuvhoQkoh56RQ 6w84BuZS5kqmgGvBlWMQLnM= X-Received: by 2002:a05:6000:1209:: with SMTP id e9mr10835605wrx.404.1595291950346; Mon, 20 Jul 2020 17:39:10 -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 1sm1267910wmf.21.2020.07.20.17.39.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2020 17:39:09 -0700 (PDT) Subject: Re: [PATCH v15 7/9] nvmet-passthru: Add passthru code to process commands To: Keith Busch Cc: Logan Gunthorpe , 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> <20200721000630.GA682317@dhcp-10-100-145-180.wdl.wdc.com> From: Sagi Grimberg Message-ID: Date: Mon, 20 Jul 2020 17:39:04 -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: <20200721000630.GA682317@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 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? > > See hctx_may_queue(). Still not following your point... this queue is yet another request queue on the I/O tagset, e.g. ctrl->passthru_q = blk_mq_init_queue(ctrl->tagset);