Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp257475ybh; Mon, 20 Jul 2020 16:04:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxT7FIYqWd93Y1ujXZIDCjl3LX7fG+0OzFP3oMeKsl2nObN7c1BlAzg4M7mvFafAbQvDm7 X-Received: by 2002:a17:906:2616:: with SMTP id h22mr22341213ejc.154.1595286252071; Mon, 20 Jul 2020 16:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595286252; cv=none; d=google.com; s=arc-20160816; b=bh1RSXQPfGAZaNkNUehjYRW7D5CtWC1Ayn92jj/Pi6GGJ5wfR0BUUew9WlWBa4WCUV gGMvXZexxiZh1r/HR+uAyNzIR7R5dJhCWsxyF7FjTu1Kv9fvOxs9pJh7MbedHoSWWC2D oCR/LsUtDYKuTUu+sKSB4llKnrqr6rWm0U7tg9tnbWdD/nFCuFKhZh8KfraiHS/TGIeI ui/+HABaZH04IFN2ExmiMWXveoOmiGRGnahvJJgXDUsw6811xz8HJ5i/gYj2OF0KFGFn n8iJK5tAWZxvjUkTwvqn6bwxp2wGwncNBkD+8iLXfUccER4cNfwU+IAGVXUtwrUnAE1q 4KIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:dkim-signature; bh=wh/cbRuJktuOsZzlc8uRgoVgjdqNsTzfdwIGfGrtxog=; b=xxemNbV5UzVfqFof+89C5SkHEjtYGOc1fQ4gkv9xG4I/hdllDPsD98vjon/4Z5u3SS UVbW/kTb7HWtdopThtvbLQrK7eFo6drkbuPuNaUkjZsdPoD1CEHuNogFD6IVuYh/Q9bY g8+GNLw4IoHHkEAw+pizfiYkmvKyjuJLzBo1gl+cqLu+25LoWXrOTaA3tJ4mVOQYg1rT 4D2DONS7qVUSmmE0o8W1jNOE4EOdBiuhh7eMCesicQCwuc42VXSk9o+EXMvCLd8p34DS rezcFXYGu0t6TvlgcjFH7ngOtvMfH9tLC16r5ElgOA6SMKpS0rUcXSXC81bjvFfxGuFZ T5Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=tOLfZLK8; 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 t23si11570546edw.49.2020.07.20.16.03.49; Mon, 20 Jul 2020 16:04:12 -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; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=tOLfZLK8; 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 S1726878AbgGTXB0 (ORCPT + 99 others); Mon, 20 Jul 2020 19:01:26 -0400 Received: from ale.deltatee.com ([204.191.154.188]:51708 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbgGTXB0 (ORCPT ); Mon, 20 Jul 2020 19:01:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wh/cbRuJktuOsZzlc8uRgoVgjdqNsTzfdwIGfGrtxog=; b=tOLfZLK8pRPsPMltT5G8kggzB0 nO41G2ploZ70DChEYnLTnJPhOV19aXLUIaLE66P1go572nRzWz1RCML0pFyGUwkTw8+P9WmzC/rHc pF0trKf1llt0ta4rL64uGgZRp/nSyDLfBy4aokNrjaWDGfO8sC0dHKpBp7nssrm5URlhkt8Me/n3a m/bQ1XKXy7xOeLpwOVrrLAPST3wBVBu+6NnQlfGnsCtzdZ12zJ9u1Big4u1pOMoEVo9+1hkHSYNti rW9h7PkY35K25VVHWpL8lAUQj21Ry8TGnJpwFqeyKtDhFO3BNwg+tWN1c3U6a1pN5jPgPQCQs9+gS lMraswAw==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.92) (envelope-from ) id 1jxeme-0003gG-LY; Mon, 20 Jul 2020 17:01:21 -0600 To: Sagi Grimberg , 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: Logan Gunthorpe Message-ID: Date: Mon, 20 Jul 2020 17:01:19 -0600 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: <2dc39232-4042-1f93-3dcc-3266e70cf6f0@grimberg.me> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: sbates@raithlin.com, maxg@mellanox.com, Chaitanya.Kulkarni@wdc.com, axboe@fb.com, kbusch@kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, hch@lst.de, sagi@grimberg.me X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v15 7/9] nvmet-passthru: Add passthru code to process commands X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-20 4:35 p.m., Sagi Grimberg wrote: > >> 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? Logan