Received: by 10.223.185.116 with SMTP id b49csp8109892wrg; Thu, 1 Mar 2018 17:41:04 -0800 (PST) X-Google-Smtp-Source: AG47ELtrrZshfYFlLn8Lp0rrNrWHSQOFcIrYozm9V5yxjyDkW/bp2q8Q8lQMdXGnRSCxCWSMc8d7 X-Received: by 10.101.75.199 with SMTP id p7mr3289250pgr.0.1519954864197; Thu, 01 Mar 2018 17:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519954864; cv=none; d=google.com; s=arc-20160816; b=ZtupNF3XlZzH+fNwAQFxrQj3d0WkZLKcLBTxyx2RJrgOk+GSeykhkFQb1Gh9kD6RMO DempPCMLxVhjpYTCFewdg635wcRv7TG6e7pFd9iKnTIVRFYxpaNAMpiIu1hiW3HR/qLm QnLSxJdmwmRo612B4Rn6KSvW0/TQOaI9oAYctOUyfw+oByCWax9/X4NRrs5FdXA8obG1 snzG/H+X1amFQ1MZaL53ZVA/nuSRdKZHcp4jgrCwYC8PAvhYjMgc2Jwz6Cx11AlDsQVP Q4RRNeZO+qp33MhF+9CZIv0Szr6lRe8jsBmB+nqcvCw9ufqmqRGxJr2Zqm2reQ852lI7 IVqA== 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:arc-authentication-results; bh=/pVRLuxPOhpjI2hg+9xNAWjtehUmZ+LaI6T5zpKeaEc=; b=05Az812JFgOi5iZMT0D0BGOTB/MlJrmMex/QBtQe9M25gqlfWJspzHB866PKWZuaex Ku5N22dDAkY43OrlFM7pgQh0FMR7ZT7Z7Tb3DfAJLMFgcistaFmfub7YC/KytjXZ9I07 0XnDyxVtWlQllVBlh26ZrAKx9TQDXcNSF2XemghM2rnRUs2ZR9k7s6wCijhnPCO+5PGh sC3Dly9x8sLRopKrm6oh89Cg4PYb+5fPGSw/cLYpOoQU4xSR6Z78oBuB/RSx3Sutqvvp sp2xgA8VEULZq6V4V/P0+ZmG/yOOvKBTtBpzv0eyIAUFgWlmdFXMu8+5nCE6rv+ewcoO dDZA== 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 x69si3242518pgd.117.2018.03.01.17.40.49; Thu, 01 Mar 2018 17:41:04 -0800 (PST) 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 S1163288AbeCBAQJ (ORCPT + 99 others); Thu, 1 Mar 2018 19:16:09 -0500 Received: from ale.deltatee.com ([207.54.116.67]:40116 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163226AbeCBAQH (ORCPT ); Thu, 1 Mar 2018 19:16:07 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1erYMg-0003kt-D7; Thu, 01 Mar 2018 17:15:59 -0700 To: Bjorn Helgaas 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 , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Benjamin Herrenschmidt , Alex Williamson References: <20180228234006.21093-1-logang@deltatee.com> <20180228234006.21093-3-logang@deltatee.com> <20180301174450.GF13722@bhelgaas-glaptop.roam.corp.google.com> From: Logan Gunthorpe Message-ID: Date: Thu, 1 Mar 2018 17:15:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180301174450.GF13722@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: 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, axboe@kernel.dk, hch@lst.de, 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, helgaas@kernel.org 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,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v2 02/10] PCI/P2PDMA: Add sysfs group to display p2pmem stats 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 01/03/18 10:44 AM, Bjorn Helgaas wrote: > I think these two statements are out of order, since the attributes > dereference pdev->p2pdma. And it looks like you set "error" > unnecessarily, since you return immediately looking at it. Per the previous series, sysfs_create_group is must_check for some reason. I had a printk there but you didn't think it was necessary. So assigning it to error is the only way to squash the warning. Logan