Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp15468imm; Wed, 5 Sep 2018 12:56:53 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb5GUoxF/KNRCnZk4eWOgTuEUHLpDD/IXS2EjxzxNF3SMAKiYATxp2nFDh+ANPkg2H9Uc1X X-Received: by 2002:a63:2d05:: with SMTP id t5-v6mr38238516pgt.403.1536177413893; Wed, 05 Sep 2018 12:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536177413; cv=none; d=google.com; s=arc-20160816; b=USFpie3xHMIz9k7dnNRedFCvO9zY+8Aurp0E22GvJ6q7ZFvE3F73cLxHatDa0NQRuq W9/pEaQkLBfBRrNJz0E1dYJFL1Rn5DxAZUCIAob+KhdCsV4P3QPi0CGngdLO00OvsgWq Sw0XSWo5Qu/865RYaIUqJb+3r5FgidbVgXkwt7niRrQ0MpUD5wH55CmpdqWAAAFmjx/A s7v6SSLkldggyQmGcRorFozbOmoEhiu/xG0RPTLeq7gddLtsYBBYJ6wVv2aFSNTjkD7t G/4w4Z+NmVXX4PwAVV7nKGO0GOlMsY5Q9DqzHXVCLT9JD8HyCC6hvQgXIlJxbPa1AvAx Ta4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=hwWVca0/XHxuWyzuIAuoqX3GfXNrxFdvLjpu2OtS+xw=; b=yYp8xZW/+sMKIBMWhA96m5GduB1jmNZpCfvrzufR2ZWgmn9qhkqLrmoi+1GLssYjI9 /Q7itesCY+WEDCpDii9POq0YadT6QGOdorUxQ3dUg9Hoiz63M0l13gyInMPuzOusZb9B u9gTxee1xrRqSBvTHl59nmEhHM+kGgEKpsNJ46U1dE3NDgx55Gwo608LgUSvX+fquL4U f62NTp8Lsn5TaF9ppWQcZPlNbTxPRnitpm3sPyq9FrttCrvYE3NgWLu/iwWHFOsAomP6 L+HgIZDO6fFPe4PrvrJPmx91GFvds0S2aDUPeqJ+8g3cyxgO4UGTCy/wRcjeKd79pq2/ 99tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="yEmc5qe/"; 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 7-v6si2903641pgq.637.2018.09.05.12.56.37; Wed, 05 Sep 2018 12:56:53 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="yEmc5qe/"; 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 S1727953AbeIFA0S (ORCPT + 99 others); Wed, 5 Sep 2018 20:26:18 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:52628 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbeIFA0R (ORCPT ); Wed, 5 Sep 2018 20:26:17 -0400 Received: by mail-it0-f65.google.com with SMTP id h3-v6so11623506ita.2 for ; Wed, 05 Sep 2018 12:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hwWVca0/XHxuWyzuIAuoqX3GfXNrxFdvLjpu2OtS+xw=; b=yEmc5qe/wfgb+SCWhzJ+8L++ZYy7Zz6QIoNk8/1nu1jHwEcstMR2oBB2k+Y5u0vcFO Q8Zhz65goLl7B2pRCgrhaaIT8MJWPfVeg+2/V0ov6cbEQAig2iJJJWTKk92HHTmzeZ8g QuszrINJx0mfCCgYMxnY+dK0n8hZdWUgIDFMlg6LLhJsLPa4wZQMoLblJ1VNyfF9HOe8 yjHZ2kLO4yEZBv4YZtlBd5KJbucrpSRTjism9SgdtX01dIXr2kTIl2jr2D3pMD/qLX3a n0HsWWI9UnLbNfsQUb8SvR9+WS6FLhgKXuBUYc77muHZchrUD/zlpa/vA5m9juav82o4 R8bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hwWVca0/XHxuWyzuIAuoqX3GfXNrxFdvLjpu2OtS+xw=; b=NcKIgMp2Gt6wdIqpS8nDIfyxjn9SiBdRx4cDAkLJd0aZIyRqxDcuWweWBjLMADkz6P Ff27l21d05IvyrM+ysw0yKu/4kVMBACucMrW+Ls0pFfBYJFUjL/uwP+KW/TPT5hPG7Jz pYP/3BIhCtbQj0aJZQeHL2tDh4vHoswuCGRRuyoT64aVzko6qKIYxN/8tPnWGHtEj5Nl p1ovKSKK5gCYod+Iejq467hvpdeMvt+hbCY/oItg2Ho60Acb7f0FgQDFK4hhrxkumYCJ r27llkbvIroBGs+/9O7h1Fhb3xMf/HoXAqvlT3Nvzu4XBZnEHszRaKexiAi5bxw7/kRD MKFg== X-Gm-Message-State: APzg51CcsradIiBSNro9uKjm0c8Jdu1eCVFvtGLLNXNgOB/sSftciZaZ Op2i2NnWyOvOdNH8H2sIIIFFWA== X-Received: by 2002:a02:1515:: with SMTP id j21-v6mr28025426jad.2.1536177274908; Wed, 05 Sep 2018 12:54:34 -0700 (PDT) Received: from [192.168.1.56] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id k75-v6sm1426041itk.31.2018.09.05.12.54.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:54:33 -0700 (PDT) Subject: Re: [PATCH v5 07/13] block: Add PCI P2P flag for request queue and check support for requests To: Christoph Hellwig Cc: Logan Gunthorpe , 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> <1b4283da-44df-4a02-3167-e295243cef78@deltatee.com> <09258b9b-3aed-9890-b31a-bd70a133966c@kernel.dk> <20180905195647.GA1626@lst.de> From: Jens Axboe Message-ID: Date: Wed, 5 Sep 2018 13:54:31 -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: <20180905195647.GA1626@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/5/18 1:56 PM, Christoph Hellwig wrote: > On Wed, Sep 05, 2018 at 01:45:04PM -0600, Jens Axboe wrote: >> The point is that the caller doesn't necessarily know where the bio >> will end up, hence the caller can't fully check if the whole stack >> supports P2P. > > The caller must necessarily know where the bio will end up, as for P2P > support we need to query if the bio target is P2P capable vs the > source of the P2P memory. Then what's the point of having the check at all? -- Jens Axboe