Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4010620rwi; Sun, 16 Oct 2022 23:27:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vF3XllZXF1Djzed4N56WtAKZH4TsKM8COHWpVyT14rbCT3rxgAJsJycsxBY/yTF8fiMiO X-Received: by 2002:a17:902:7104:b0:17f:cdc1:f4c3 with SMTP id a4-20020a170902710400b0017fcdc1f4c3mr10271331pll.149.1665988067162; Sun, 16 Oct 2022 23:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665988067; cv=none; d=google.com; s=arc-20160816; b=Qf/EOoFXx5+/CWITvWfHgsTic26LV5klxsAf+Vzy3o3pHltE+eTDb7VpFaSi8KdQ9x umpVOYs++hp83+oCeSgd/tW8JrSj/Hb4DLUvMsC79MJpiHHA2AeTFniWp/qoZ0C+MVb4 wwKOwLXbChOj8tUqkDt5kBJrLD0j1E1TDBYeRGgEEWWnd27lKroien177QGtAmT+vC8s zKkx698wy2Ld228l4dbr/rC1/zqnLsnEARS2zd/mJBNTPLEAF5LRWMjUk5wsp/X8uiDd oP+mv9RiBaacudTY+GpqnOoz41wV0YYCoVA478WiuHtRfMUldmBAH5PxVQdMdWIgf/lc EjKw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=N2HLKYaaa4moFMEAHSq8/Ulf9SnN3fOPAE94ixBzemo=; b=peYYWHFt0RXq7wlM65lUzLRRwWwXDUtSNGmH76PSU3Ah0CSzDSm0Mk+/a4m3EKFWcD ViELUppzxg48I+JI5ir99J02XgkW80UXh7uOPkqaM11b6r03lgxEnFAyZbH21LHZDI29 yHQT99bsYzlcGA7+UXxFVwDxyd6lMBT/kPOCmsxm3+ZJWNeQYt+RETArS00QEsJRZJhy FOHbyDseR0yfaKCN81Ni3F2nmUCH6vgwnyu2JIse2SUsiJOejcRFgqXAQrZ+QdwxH+ZT 3NKapc5T7kSPwxflsrZQLor3mK9wIxMy4ONH/U8vEADhoGpFQtO9D1mJ6GjMtCMrLavN 5tBw== 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 n32-20020a635920000000b0043954dec8c1si12091284pgb.615.2022.10.16.23.27.34; Sun, 16 Oct 2022 23:27:47 -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 S230071AbiJQGJ7 (ORCPT + 99 others); Mon, 17 Oct 2022 02:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiJQGJ5 (ORCPT ); Mon, 17 Oct 2022 02:09:57 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233212A961; Sun, 16 Oct 2022 23:09:54 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 665D168BFE; Mon, 17 Oct 2022 08:09:51 +0200 (CEST) Date: Mon, 17 Oct 2022 08:09:51 +0200 From: Christoph Hellwig To: Christoph =?iso-8859-1?Q?B=F6hmwalder?= Cc: Jens Axboe , Philipp Reisner , drbd-dev@lists.linbit.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Joel Colledge Subject: Re: [PATCH] drbd: only clone bio if we have a backing device Message-ID: <20221017060951.GA28409@lst.de> References: <20221013135352.933875-1-christoph.boehmwalder@linbit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221013135352.933875-1-christoph.boehmwalder@linbit.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 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, Oct 13, 2022 at 03:53:52PM +0200, Christoph B?hmwalder wrote: > + if (get_ldev(device)) { > + req->private_bio = bio_alloc_clone(device->ldev->backing_bdev, > + bio, GFP_NOIO, &drbd_io_bio_set); This adds an overly long line. Otherwise looks good: Reviewed-by: Christoph Hellwig