Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4216491imm; Wed, 5 Sep 2018 12:36:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZK+M5xyN7O7PsHTkBAZjyWtKvr3qw/q5/5DLT3rd0WZGiSl4CEqgGb0cMy+RjeKBmq3Zqz X-Received: by 2002:a17:902:74ca:: with SMTP id f10-v6mr40892025plt.260.1536176180055; Wed, 05 Sep 2018 12:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176180; cv=none; d=google.com; s=arc-20160816; b=uzNljFuRRx37Eht04Ut+WjLO5R7u64hdfgHT2V1vSppdNfSaTYBsYzcNaY7e4pdc80 6txoEyqXSdJahMVzxz8G4e4v4KHV19+TacN2jgx5gBEXFa+NNIqOMX9rF9zYdzmg37uL wB3AfPxdP1glSHw6xNzQYbhX8QZm2/ittGd7Za4TnYJROubI8y5Mgy1Oo7MFeI6VlbQN M6/J63EwouWlI8epBfeMk4OhwnBK6Tx/Dj18Oc8i749oXrWXx8pAyjrBHUIPF830CnLz pIiEYrMlaq1xRGW+IalkxGwOukWgKMxUcSULzDd2SItcWiCO/3YOxktE6s9uAC8YIQsf zeEg== 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=diTlu1Qdue5rOUI6s9m9vWpxcF4fhyp4y5GkbkBSDT8=; b=LyKpo21x/y8g8Ag67B3USqNKPW0R0I0xb1zOlzUdBdJpQHXeeR1N5VwHCFKulXshsX LCDV3cqnqZ8BDwIe6ElpS/ZgScqmoKcQzPsMgb2cnnY/0amafMen8Jj+VxnWFJCgORWX VeKFVvGi0rnpyBuXhdkZdfWxHaBQpeXcHazOS7V6fqwnlcxehw/FUL7qQyJ8YMOmEXEQ e3AQjdbWtXj0BzqamU1Blc1sOC4pZNEECWMEAe9agHaIjOiAJtjV6NQgkWeVWUjJyUwo /2YMpC49pu2fRBnYjKukq4Iq1f+TzORIwQZSrvc1cPo3m3grhzyG+yhJSRnExonn/m8b Gd+A== 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 g3-v6si2189063pfc.216.2018.09.05.12.36.04; Wed, 05 Sep 2018 12:36:20 -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 S1727739AbeIFAFa (ORCPT + 99 others); Wed, 5 Sep 2018 20:05:30 -0400 Received: from ale.deltatee.com ([207.54.116.67]:53516 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727267AbeIFAFa (ORCPT ); Wed, 5 Sep 2018 20:05:30 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1fxdYN-0004yR-Rs; Wed, 05 Sep 2018 13:33:28 -0600 To: Jens Axboe , Christoph Hellwig Cc: 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 , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20180830185352.3369-1-logang@deltatee.com> <20180830185352.3369-8-logang@deltatee.com> <20180901082812.GB670@lst.de> <5f79c012-c6e1-56bb-62fd-0689181fb2c9@deltatee.com> <59b28977-8f2a-6228-2050-03fae6bdbedd@kernel.dk> From: Logan Gunthorpe Message-ID: <1b4283da-44df-4a02-3167-e295243cef78@deltatee.com> Date: Wed, 5 Sep 2018 13:33:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <59b28977-8f2a-6228-2050-03fae6bdbedd@kernel.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: 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, sagi@grimberg.me, 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, hch@lst.de, axboe@kernel.dk 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 v5 07/13] block: Add PCI P2P flag for request queue and check support for requests 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 05/09/18 01:26 PM, Jens Axboe wrote: > On 9/3/18 4:26 PM, Logan Gunthorpe wrote: >> I personally agree with Christoph. But if there's consensus in the other >> direction or this is a real blocker moving this forward, I can remove it >> for the next version. > > It's a simple branch because the check isn't exhaustive. It just checks > the first page. At that point you may as well just require the caller to > flag the bio/rq as being P2P, and then do a check for P2P compatibility > with the queue. Hmm, we had something like that in v4[1] but it just seemed redundant to create a flag when the information was already in the bio and kind of ugly for the caller to check for, then set, the flag. I'm not _that_ averse to going back to that though... Logan [1] https://lore.kernel.org/lkml/20180423233046.21476-8-logang@deltatee.com/T/#u