Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3270000rwb; Mon, 5 Sep 2022 08:54:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR71c0htW82zDUobxMObRce2hmuAXXDfuqay21K6Sx8whBCSD5x7mEL5YERY7c/3hsPtALDP X-Received: by 2002:a17:906:9756:b0:741:5fa3:884e with SMTP id o22-20020a170906975600b007415fa3884emr28106719ejy.515.1662393280416; Mon, 05 Sep 2022 08:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662393280; cv=none; d=google.com; s=arc-20160816; b=S+xht0UvpYt2sJz9Zp9TTokHF3qynSNR7gXkRPyxiSOid3+qsjKWjZ6hSH7As5Nx23 NCRkyGO+DtJDvbussjPJs719pMPv2jHOeQ1sCaLSKMwXCtzMGSM9ylqwifuGvAbug0Mj W9yfJeMFJhgl9nQmdtUeI96mDUwQpyqnk3s3RDqcPQYrY0MWNuFX+BC+Icx5B5ZAhHTM jra2dP3vzhPdAdnD73Ri3WzN4zUo+SeQTpJRkf8IGMU+YDL5DJdPJQCEEuwHi6fCjKVI Myc7dLK0AcB5QCV7XgbFDSZUJwsfgK6r/Z93XQCthqwnmn1VuO2Mh3A3Ai20Qv8NK5Jv avag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=VbAFdpoPXWbRZlhuN33kyDdubb2U+AU+TS+0sItsAU8=; b=Ucg9rjg4DYR+BJJ/vAmvYyYekJiLnGTpEJGcom9Kvla3SqqhMONsDBz8cIJtVvVzJW YiytLAGnK/gjyv837H8uiKotuL2UerxjdH3jNm6p06+XoPGV1wjXSAp+HWCfh5jbeGg3 Xk11vi9PMfTkoUbgeDnzlsc2a0ZsS/oCSOT2lZfjF6f/9A/NCEkuBdT8r5dc61GXChOI g9RkeYH5fIBGlB0nfiJ+/LBrE1jjHg9Bt5W3ouBQx27oMrXrR+ehk59EjJjt0k7Cdx2O jS2VTKYzosmR1ESDiIAJps9vRmFqGLh4QyXD52muSfKAYSMQci/GnniwYIkFNnMXQXjC O0Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q28-20020a056402249c00b0043acee93208si3043035eda.319.2022.09.05.08.54.12; Mon, 05 Sep 2022 08:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238398AbiIEOi5 (ORCPT + 99 others); Mon, 5 Sep 2022 10:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238484AbiIEOiA (ORCPT ); Mon, 5 Sep 2022 10:38:00 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C488A5C376; Mon, 5 Sep 2022 07:36:40 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id E999768BFE; Mon, 5 Sep 2022 16:36:34 +0200 (CEST) Date: Mon, 5 Sep 2022 16:36:34 +0200 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig , Greg Kroah-Hartman , Dan Williams , Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell , Stephen Bates Subject: Re: [PATCH v9 5/8] block: set FOLL_PCI_P2PDMA in __bio_iov_iter_get_pages() Message-ID: <20220905143634.GD5813@lst.de> References: <20220825152425.6296-1-logang@deltatee.com> <20220825152425.6296-6-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825152425.6296-6-logang@deltatee.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 09:24:22AM -0600, Logan Gunthorpe wrote: > + if (bio->bi_bdev && bio->bi_bdev->bd_disk && > + blk_queue_pci_p2pdma(bio->bi_bdev->bd_disk->queue)) bdev->bd_disk is never NULL. Otherwise looks good: Reviewed-by: Christoph Hellwig