Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp265237ybh; Mon, 20 Jul 2020 16:16:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY93+EhSM9TdJLvrE6O0ai3OJkZBwOLseJeiVjQNwsS0RFWQrMLyi+wRsJ6c83BtNBCvi6 X-Received: by 2002:a17:906:a055:: with SMTP id bg21mr22647111ejb.516.1595286997141; Mon, 20 Jul 2020 16:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595286997; cv=none; d=google.com; s=arc-20160816; b=JumpvsIlaqQIVOYlfp3h7QH6zKPfV8bSYQQOdzGlPYQ7r1Qm3F9x4iiNNOA0hndTLL N3gZWa/PtXEoXqZdnRUqriZlWJRHC2exwt217JXZA/tzQwUzS7Ed3KAHE3rMQ+EcyaBB Kce7kKTJfKowiV7klTZ3T//v7jEQDR0PYTcFeiDM3AbdSge6QhUeUP0DAa9fCOwMd1rX srl+idY8h9fGqozdKH2OFgHAUNYrrshpM6ICyE+89pM4kBB2slpNMiTTjyKVCll2kQeo ysY2FI25NszBeAAbDGBsspn8OD3rT0EaCFSR9KL0XXhTf+9eatPpVD1WzFq5Zrf4Mw4q HPMA== 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=8MdlYlmqeapz+lWES5DzlofRg8ebONQpfWbq8TC/AcE=; b=lhN6GsHpaXOSLSrR9jCfcLbT9Iq0HOwa8RnI/d3r23J90WcGQ44ivdMvvU2la9PY3w vGzXJx5lRME1S4LHhEAKPmN0BtQj9PQ1EIl/rci1XD7zuIuXRIHP+4j3LJU825urgWOy qYxMWyyfKabAemAU0RPwvUNZArTwhyRTsfVFQaNmztDVSo7Jgj6Rvz5O/Cy/OVLWFQqu wYJf76dW9jx8T1LcjZjF+P+Sl+TB1CqWmyISzgscAY6DTfCVBaOrRRy5XuQXFH5eAQgj OiCk9+ShKWX1kI57UFKbSppIQFvh8peDlBK2hEwSwzNlJJTLnR1zTtBYlfhxhGjGyR+2 e8dw== 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 dr6si12714940ejc.638.2020.07.20.16.16.14; Mon, 20 Jul 2020 16:16:37 -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 S1726841AbgGTXPf (ORCPT + 99 others); Mon, 20 Jul 2020 19:15:35 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45838 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgGTXPe (ORCPT ); Mon, 20 Jul 2020 19:15:34 -0400 Received: by mail-pl1-f196.google.com with SMTP id k4so9391865pld.12 for ; Mon, 20 Jul 2020 16:15:34 -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=8MdlYlmqeapz+lWES5DzlofRg8ebONQpfWbq8TC/AcE=; b=HbV26hpIEIvZ0Cl3ngWRa9VLpuEj+ZSS9Zum0kh7e8rvkcbhWBcAIqxLQVbScCjM3q wcXb4CBobzClGy3OmxEc60frMsD9ZGviN8I5cvxomHesi2CyHGOQKxmbK5s2f7HpyvYN JM0U12f/gDSW/vLgUA+rRBU0MMIa31g/FRnLHJeNSBg/mJybTTUzi8bEw0cpNQkIU2jJ HYDZ+ZTF62pvdVw303oVJ8tntiB4oh+TWuc6qS2mMlAWSgRAYdDEHECSRPGZ99LUfoYH u2H4rrskGpDlqYTmv9ZTIQCLfPtJVFahTNnvO7Dw3/0aYz3CJc8pKJCoHCGxkd/SHxo8 9Ltg== X-Gm-Message-State: AOAM530ym1jDnBGKmw9pWv2KY1Z1Se4OgDTcXB+Ouh/nubPp0JNYUyl4 EdyyHkXT3VoHMRh83B+c+ns= X-Received: by 2002:a17:90a:bf02:: with SMTP id c2mr1625764pjs.114.1595286933772; Mon, 20 Jul 2020 16:15:33 -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 y27sm16821780pgc.56.2020.07.20.16.15.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2020 16:15:32 -0700 (PDT) Subject: Re: [PATCH v15 7/9] nvmet-passthru: Add passthru code to process commands To: Logan Gunthorpe , Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Keith Busch , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates 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> From: Sagi Grimberg Message-ID: Date: Mon, 20 Jul 2020 16:15:31 -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: 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 >>> Thanks for the review Christoph. I think I should be able to make all >>> the requested changes in the next week or two. >>> >>> On 2020-07-20 1:35 p.m., Sagi Grimberg wrote: >>>> >>>>> I'm still not so happy about having to look up the namespace and still >>>>> wonder if we should generalize the connect_q to a passthrough_q. But >>>>> I guess we can do that later and then reduce some of the exports here.. >>>> >>>> That is a neat idea! should be easy to do (and we can then lose the host >>>> xarray stuff). I don't mind having it on a later patch, but it should be >>>> easy enough to do even before... >>>> >>> >>> I sort of follow this. I can try to work something up but it will >>> probably take me a few iterations to get it to where you want it. So, >>> roughly, we'd create a passthrough_q in core with the controller's IO >>> tagset and then cleanup the fabrics hosts to use that instead of each >>> independently creating their connect_q? >>> >>> Though, I don't understand how this relates to the host xarray stuff >>> that Sagi mentioned... >> >> 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. > > Thanks, that helps clarify things a bit, but which xarray were you > talking about? The patch from Chaitanya See "[PATCH V4 2/2] nvme-core: use xarray for ctrl ns tracking"