Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3014221imm; Mon, 10 Sep 2018 09:39:21 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda0xnn+phD5gDoVDja8LDxLoAMPMvrH+rLxQaWtF1QOOftvwXg9u5r1s88NUTddsPp93/x2 X-Received: by 2002:a62:b20c:: with SMTP id x12-v6mr24529658pfe.201.1536597561068; Mon, 10 Sep 2018 09:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536597561; cv=none; d=google.com; s=arc-20160816; b=IwaU8mHAzyzjpy43Eyk7uXeZCEwSF6CUQul3pePt9j48oylKf4L3qtysp78EGjcKfX t5mg69hylA0bbV5pd2I0YI0zODCY7J0ejwDyc1NpvNQ89cGcOQTAQTON684XKewg521V hk59cKRXHSZRvtLP8nHs3WzU0Xbe1hSdtgS32PW1HVoWPjOjMLjNbREkbIFBbmyZRbnt DCQszata5ZEHEpQfTJpU0P6ImafyApdE0tB+nQcfB5OajqnfFDRHRlZ4eh3F/kJsLH0b nuvAdCWyjEUd/a64u8VJOaMBOFrg2FOl6wcPQnUqwGPvcC8PSNlnR78qnVuAc7sjlmGb 6HPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ikKD0fn2ZGWaikcDo+u19EAKuYijyV5zZoBH3NHeQ10=; b=qWBPXQbmztNTXU8gbEY09GhW84zxuJkhOZmVn+scq+KM4uX5orkcuFgKVlNFmYLIUl U1FzrFJER8CfbU06hKQzp0pseiSLHfZK4ysKPPV1PfxZhwrkaVLevO80QIDHF7izS90H M9I2xVNDqtYgTaBpgs4+oJ5NM0hLXY5JU83GwrQUyhBppcw+wUyiwk5bxkeO/k2fdlT3 1/YMVvRbqHYD84tt6Hu+J2GSO24cci1wZmfbegsKbdmYcrIQ2Ei2RZMvKvs0bJYkBPKo 4CUwHD1H/M30zbwQVMKnXTwIAauj3eG2+yWFEIFLhW6nRJRxeZFVR+FA9N/IoEOJPd6O I1Fg== 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 i128-v6si17222333pfg.93.2018.09.10.09.39.04; Mon, 10 Sep 2018 09:39:21 -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 S1728544AbeIJVcV (ORCPT + 99 others); Mon, 10 Sep 2018 17:32:21 -0400 Received: from verein.lst.de ([213.95.11.211]:38583 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728137AbeIJVcV (ORCPT ); Mon, 10 Sep 2018 17:32:21 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 2A5D167357; Mon, 10 Sep 2018 18:41:44 +0200 (CEST) Date: Mon, 10 Sep 2018 18:41:44 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: Jens Axboe , Christoph Hellwig , 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 , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [PATCH v5 07/13] block: Add PCI P2P flag for request queue and check support for requests Message-ID: <20180910164144.GA24591@lst.de> References: <20180905195647.GA1626@lst.de> <20180905201152.GA1893@lst.de> <2a3394bd-5f13-4818-43f4-dfc61f501e05@kernel.dk> <3af4d1d4-da07-c0a6-8464-9ddc1378f2f4@kernel.dk> <34d9b2f7-9e6d-4a0a-77e5-ec0e99610f5c@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 03:03:18PM -0600, Logan Gunthorpe wrote: > There is no special p2p submission process. In the nvme-of case we are > using the existing process and with the code in blk-core it didn't > change it's process at all. Creating a helper will create one and I can > look at making a pci_p2pdma_submit_bio() for v6; but if the developer > screws up and still calls the regular submit_bio() things will only be > very subtly broken and that won't be obvious. I just saw you added that "helper" in your tree. Please don't, it is a negative value add as it doesn't help anything with the checking.