Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp21512imm; Wed, 5 Sep 2018 14:12:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYTMME6Gwdya8RekxfMNcTaO04FN3Np07ePsHM9DsN5T1YjyxllIPespN0NDRN6qYwYK3Nb X-Received: by 2002:a63:4c02:: with SMTP id z2-v6mr15401041pga.312.1536181929160; Wed, 05 Sep 2018 14:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536181929; cv=none; d=google.com; s=arc-20160816; b=U1KGBhpfK/SfEX/309V6BPQBMcdUimc6g+0TxORZUesDmUJ1laoyNA78yT4kpziQyj Tq3yaiJAdWc+kmuDbu9239jI/Ygalw/bGgIyKMkEjF2IIEcWPcakfXI0EKcOJMYvcDe2 hDjBJT8FjskazUoDdfQsomt/hceO7PosIwdMUTvB2p3wxm57EWpvqvC2pAJp6W6pcvaR 4RJtG47DqBtSDx+oPADSU7OH/7hCF5DyZY1Q5JMu+NEoiLTjS7F2rALRkQYWL9YQIh5c KB0fhSLzgZwzMHW613E8iPn3HKCJ5XplR3Rz0VbucmhyrdVK66wdqrtqzjssyhiDR2yH nZ6A== 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=fsqm5cr/5lOUxDcgdYEf33VRNJWG6ZqnKpv6zxN+qE0=; b=tap7OENwUovTkPGVlq6g0zxeuhlhJlq5aVnXP848TrBAy/m0QgR43cTUh/INKVkoDS fe9m+PFrVcE9MavEs8Fgtan7TeKBGWPbdW6Dlsar8itrNON+0kCGvdLPBBgJgAAESfYg osyLW0rC+L7vvXwAjyNP1HlApb2QoQpuKMUw2cg4HlJ2UCUilikDmpW9eOO1FD7fYr8z GBLIl0xcQJIVmJYpYaHbyR9PK9NQ1ujG+P+Y3lkbhZE5Fo6TEDHpch9PCmAnkaoT0maY gyuhZsPyBM473b7suqHxxXx0CfsEx1EDRsgBhNiumCZ0JII6MIkt4+Agu2BTqweu292c /5IQ== 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 a8-v6si3225270pgm.201.2018.09.05.14.11.53; Wed, 05 Sep 2018 14:12:09 -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 S1727724AbeIFBmL (ORCPT + 99 others); Wed, 5 Sep 2018 21:42:11 -0400 Received: from verein.lst.de ([213.95.11.211]:47314 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbeIFBmK (ORCPT ); Wed, 5 Sep 2018 21:42:10 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 2441468D40; Wed, 5 Sep 2018 23:13:51 +0200 (CEST) Date: Wed, 5 Sep 2018 23:13:51 +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: <20180905211351.GA2927@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 thought about that when reviewing the previous series, and even started hacking it up. In the end I decided against it for the above reason - it just adds code, but doesn't actually help with anything as it is trivial to forget, and not using it will in fact just work.