Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp558979ybi; Fri, 26 Jul 2019 14:48:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyR0IrSB9DjViqtqUbQos9HpySwoobLhIyuIqQFe/VsyvHXuVbMJX7SvEvuCEd9MZlMlJL3 X-Received: by 2002:a17:90a:3247:: with SMTP id k65mr56820179pjb.49.1564177736509; Fri, 26 Jul 2019 14:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564177736; cv=none; d=google.com; s=arc-20160816; b=rnWmgm1kCT7ewBlD93ysOluvhVt8etVGarYYU5UhiErVx/ToAFrsAH6LtGEQ/gB7KL K/eTFvfTYwId3CzX+wqg6q2RsC0X5hTTVU2YdMqobFsiRveShZw09erGvzVByikbBgLu SBVwDnrJ6r48hrJupO4+yyalhI1DPHwTZb8CAxgBAJqBnVqQsO9X3WuqB/LIgzW8M6Bu /UcEc/ubpjka46b63z2Z7YsXGrRFn5Ss9D7jpbts1E7fQZW8FgyuDk2DXQvL9eqIZw6R wXWEVSX2eYgL+psjiO+qCyFwp40yOQywTaYP1VTTEfZOd4XbT7J3m5HfLDuBZ3yKrAKW 7qBg== 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; bh=y09GyW/ngtyOxt/Yk0L1C5klGxB4LDM9KfrWxuXsl+I=; b=DBKwVFHxgOULaFTNoYtaAvlJHVXKKdTICf4kULeGPTxc8oN6ff+Ph3lRuUB0c9DP9o dawjn9V5dL+ZjlVUMiZVKx+zP4TPrrL2kGK2/vBN6DRWXk4K6ueZaQdUjtpB5YWyp9gi t21uSZkPW9+Z25bXOUrDkWNxo/B01soUpw5HniNg78JZ1sFUoMq2BZ7WuLHM3BTcr5DV rO32AG/CZ1iAhHrturzXq+f10go4GAmvKlWSLe1/nAldyJXpCtuwEgYwoU4BUcZAV6Gt fUHHNdqJtaxquMpz8G/U6bLAueNis2qLsgV1et4yjKv3UCcPPt3yoYx+FDjCR8br2xyK MzPA== ARC-Authentication-Results: i=1; mx.google.com; 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 u1si18442459plb.234.2019.07.26.14.48.41; Fri, 26 Jul 2019 14:48:56 -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; 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 S2387685AbfGZRIE (ORCPT + 99 others); Fri, 26 Jul 2019 13:08:04 -0400 Received: from ale.deltatee.com ([207.54.116.67]:35658 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387437AbfGZRIE (ORCPT ); Fri, 26 Jul 2019 13:08:04 -0400 Received: from s01061831bf6ec98c.cg.shawcable.net ([68.147.80.180] helo=[192.168.6.132]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hr3h5-0004NW-W6; Fri, 26 Jul 2019 11:07:48 -0600 To: Hannes Reinecke , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Christoph Hellwig , Sagi Grimberg , Keith Busch , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates References: <20190725172335.6825-1-logang@deltatee.com> <1f202de3-1122-f4a3-debd-0d169f545047@suse.de> From: Logan Gunthorpe Message-ID: <8fd8813f-f8e1-2139-13bf-b0635a03bc30@deltatee.com> Date: Fri, 26 Jul 2019 11:07:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1f202de3-1122-f4a3-debd-0d169f545047@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.80.180 X-SA-Exim-Rcpt-To: sbates@raithlin.com, maxg@mellanox.com, Chaitanya.Kulkarni@wdc.com, axboe@fb.com, kbusch@kernel.org, sagi@grimberg.me, hch@lst.de, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, hare@suse.de 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 autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v6 00/16] nvmet: add target passthru commands support X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +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 2019-07-26 12:23 a.m., Hannes Reinecke wrote: > How do you handle subsystem naming? > If you enable the 'passthru' device, the (nvmet) subsystem (and its > name) is already created. Yet the passthru device will have its own > internal subsystem naming, so if you're not extra careful you'll end up > with a nvmet subsystem which doesn't have any relationship with the > passthru subsystem, making addressing etc ... tricky. > Any thoughts about that? Well I can't say I have a great understanding of how multipath works, but... I don't think it necessarily makes sense for the target subsynqn and the target's device nqn to be the same. It would be weird for a user to want to use the same device and a passed through device (through a loop) as part of the same subsystem. That being said, it's possible for the user to use the subsysnqn from the passed through device for the name of the subsys of the target. I tried this and it works except for the fact that the device I'm passing through doesn't set id->cmic. > Similarly: how do you propose to handle multipath devices? > Any NVMe with several paths will be enabling NVMe multipathing > automatically, presenting you with a single multipathed namespace. > How will these devices be treated? Well passthru works on the controller level not on the namespace level. So it can't make use of the multipath handling on the target system. The one case that I think makes sense to me, but I don't know how if we can handle, is if the user had a couple multipath enabled controllers with the same subsynqn and wanted to passthru all of them to another system and use multipath on the host with both controllers. This would require having multiple target subsystems with the same name which I don't think will work too well. > Will the multipathed namespace be used for passthru? Nope. Honestly, I think the answer is if someone wants to use multipathed controllers they should use regular NVMe-of as it doesn't really mesh well with the passthru approach. Logan