Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp598847imm; Fri, 5 Oct 2018 08:43:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60AMFQvnVS+j+x6YXrPg0iOFH1NP6LHujrePuDQZ3MWTHRAm+/fHfy/gQAmg1xuuRzaZgOv X-Received: by 2002:a17:902:7b83:: with SMTP id w3-v6mr12311897pll.285.1538754239811; Fri, 05 Oct 2018 08:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538754239; cv=none; d=google.com; s=arc-20160816; b=oQZjHDTWFCtyNYCXZFfmYsCCMM7e1oHAjHYiujWAES8s3nRSXJ+8Uu8qJ/rLAlUzo/ /g29B8n+3oYRhGbu5PMJ/6IYoZ9HYWBO+xLfX1pJAk0jykEIyFWYM8T48lcaLEH8wFL0 KfmncrMjgM4wr7mut7rJ9Bx0dYqTn88vkDoVrXRHbc4Q2egvo20VH8wJ75t0/HNZHOfN fGZM7ATBsHFNNw88Su6mKZu/eIMquUywsOo22M7mpTFe8sR2sb+sj0JvBqMKeDamUzld +DgNb5z3yuAd94UdBRDA4y7y2EDhyXw6oN2q6VTMV0tpDKRYZAlLNYkVIKU7ucXJ8ijT FFRw== 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=lx9Ak2QEnB3ZdWIKUy/KhGZUD4/tbylSRuqdLrsO80w=; b=AcXSqU0ih2o69kMwbgvJ2xWX6+OJLM06d6weZi9lEaZsRAafOCGlDbFquov7x2fswl GjpJPQylI/xY1eSmWM25dWt4PBkj2p9daFIIYznLkaf+CB2ZTloU9ULUfasSS24mB0lc 43Ur4u4TJWaIKkDoySOUFNMaMO9RETnkkwRr0w2tSiE2Eoi9lv/xosEKaiXVCP0b4VlC VkT5mkBqdXf7VinhvMpI4ncCg8b8+JjivBGWqIrbYkzWdkMx6yLLVj28B4If9dzLF/j1 JYH4WctJPEB0r5g/Sq6kJnS9LnqPkjzXHORGZT149XzRmDppQFV6aJKmqkoTHVDC3s1s LElg== 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 y66-v6si8065756pgy.496.2018.10.05.08.43.44; Fri, 05 Oct 2018 08:43:59 -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 S1728538AbeJEWlc (ORCPT + 99 others); Fri, 5 Oct 2018 18:41:32 -0400 Received: from ale.deltatee.com ([207.54.116.67]:60374 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbeJEWlc (ORCPT ); Fri, 5 Oct 2018 18:41:32 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1g8SEw-0007ab-Hr; Fri, 05 Oct 2018 09:42:07 -0600 To: Christoph Hellwig Cc: Sagi Grimberg , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-nvdimm@lists.01.org, linux-block@vger.kernel.org, Stephen Bates , Keith Busch , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson , =?UTF-8?Q?Christian_K=c3=b6nig?= , Jens Axboe , Steve Wise References: <20181004212747.6301-1-logang@deltatee.com> <20181004212747.6301-14-logang@deltatee.com> <2bcc0927-83ab-1bf2-d584-aebd5274cefa@deltatee.com> <20181005070720.GA23725@lst.de> From: Logan Gunthorpe Message-ID: <298e6e20-c8b6-de4b-46f5-94d1d3e2445c@deltatee.com> Date: Fri, 5 Oct 2018 09:42:05 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20181005070720.GA23725@lst.de> 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: swise@opengridcomputing.com, axboe@kernel.dk, christian.koenig@amd.com, alex.williamson@redhat.com, benh@kernel.crashing.org, jglisse@redhat.com, dan.j.williams@intel.com, maxg@mellanox.com, jgg@mellanox.com, bhelgaas@google.com, keith.busch@intel.com, sbates@raithlin.com, linux-block@vger.kernel.org, linux-nvdimm@lists.01.org, linux-rdma@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, sagi@grimberg.me, hch@lst.de X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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.1 Subject: Re: [PATCH v9 13/13] nvmet: Optionally use PCI P2P memory 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 2018-10-05 1:07 a.m., Christoph Hellwig wrote: > On Thu, Oct 04, 2018 at 04:29:19PM -0600, Logan Gunthorpe wrote: >>> This needs to handle non bdev namespaces. >> >> As it's coded now the helper never gets called unless ns->bdev is not >> null. But in general, yes you are right, we should probably return NULL >> if ns->bdev is NULL. > > I'd rather skip that for now. Ok, if I do a v10 I'll add it but I don't have anything else queued up at the moment. >> Sure, I guess that makes sense. I've never tried it with fc hardware but >> I assume there's no reason it wouldn't work. >> >> I'll queue these changes up for a v10. > > And I'd wait until someone has actually tested this case. Agreed. Thanks for the review! Logan