Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3697946imm; Tue, 11 Sep 2018 00:07:04 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdaqdn/xlr5X7nLbobWhM1rEPqKm1/VaNSs0KvvWTbQ2spuwfSNgXy8usCzrWqBcWCKBPkaU X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr25814865plq.334.1536649624466; Tue, 11 Sep 2018 00:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536649624; cv=none; d=google.com; s=arc-20160816; b=s0DJ8oWUVtzllOuofc6DfRtyizWHLStZAo/Zj/Knjw6KEiqNvrvA1+IxDB8cKul8m3 vzgrWD5r4brq0h0HSlzWkBN+JrfduuZh7Eyi0rdUOW6LtnbtxZpSG56/IDhOSEneOBet uRI03z6SkbQr/2paOLVoyko9DLMAy2ccJh20siQnLfXaHmVfoUexhMvtmgpEysYbRhIA LTy9lcDvmTD8Jpb8XTjCzmfSA3xN73nEev93FRWgHrWEmXCi74M5cZt3Ef3o7lDR7vPA ok1VcRTT6jJeiHDnq43jN1CoFNIFbh7TPrNsIljGbuitqejzdwcJoveCSVeAorCo0xJZ M3Mg== 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=UmFRDVWIV4Ht0RRPUp7emSlJX8pFqy2sd6mnCrtB7Zc=; b=CdIYHU/7u44njYUPkuTc/4irNfMw9DxHpLhcEGuezcU8yuEM7eDS7XLUsi0+HgAHqt sMtv65d6PgjwFTqGjPctYPMhLbP0oAQRboXYYbmxxdabgzIKXe6Qy0dpQKLYkgOolETP x3A2GK4SOC4ClwMSt71XxomjpLRrIWZVUBWurYgTv+g6f0rgdZ/5Ow46C1LLU3rxRxLR QDkpcIOlGCX89/fkS+PBIOWIAa7Nki7XBXZbh6nXuKY9Cbt7izSH/QIMM+dTB4ZSntiw DVH2PuTr6oZGhxPf6tJHJdUjdOUWfpagkxDpDQfpgyYrz3VlAw+QWI3OOsqbLfK7q+lQ td/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 r25-v6si18638698pfb.65.2018.09.11.00.06.48; Tue, 11 Sep 2018 00:07:04 -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 S1727384AbeIKME1 (ORCPT + 99 others); Tue, 11 Sep 2018 08:04:27 -0400 Received: from verein.lst.de ([213.95.11.211]:41259 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbeIKME1 (ORCPT ); Tue, 11 Sep 2018 08:04:27 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 0DDEF68BF4; Tue, 11 Sep 2018 09:10:56 +0200 (CEST) Date: Tue, 11 Sep 2018 09:10:55 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: Christoph Hellwig , Jens Axboe , 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: <20180911071055.GA6609@lst.de> References: <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> <20180910164144.GA24591@lst.de> 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 Mon, Sep 10, 2018 at 12:11:01PM -0600, Logan Gunthorpe wrote: > > 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. > > Alright, so what's the consensus then? Just have a check in > nvmet_bdev_execute_rw() to add REQ_NOMERGE when appropriate? Yes.