Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp307513rwr; Tue, 2 May 2023 21:31:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5a+cRJ0in5GsHBsZ4AnD/B4SKbFTkmUPT0dSB5IuM2LlqUUemA3WRZD7jnmtVS0RHYWXF0 X-Received: by 2002:a17:902:988a:b0:1a6:565a:16cb with SMTP id s10-20020a170902988a00b001a6565a16cbmr832659plp.3.1683088316487; Tue, 02 May 2023 21:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683088316; cv=none; d=google.com; s=arc-20160816; b=hhjKHRHucF39+Vt4xn0rJ3J4NZar43N52AKqyosZoq0BCkWnZaSYueg5WmBHa5v7fX yasjWNrFVkCD1r/rTRRK0GAeHmXUEzIv7DtOJqOpFtaOgMCTNugS6qWsBGaTpRYiFKvm lLVd3n2iqrUrXkeoSbEoo+mNR3PPlA2qAnQqrabTM3PLsmJM66MtGpdaKHc0Cz3Yzs48 1JsDgV2a6bqdrY9BqSRi0kGRLDZbRcb6FUhlRLbBqJHcO4icNkYjLlzrKn9+u3H1c5Zb bXdUbD6lGq3fvevCNzBjkUS3ip13pSNj5KzEo/vNKh1yd2Ltd/oNak/c/XlZcqMzfJav 09ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x21ZOyqwSO6akl9eeR4mmRhulhewI5kv9bFdmjbWKCU=; b=nx35B2aWs5yPQhIfwRFto3MDIKzs/zT4OYEJcQOpFdmvAxWG95Ps6xDyEAk74x6jA6 xGST6+Qq4nixBoXU6I5YPszDRu0AvLXpJuP3ypWn5OINzXgiRzgWBqb84oAHjsyBCIZO HRLhWdWXkFNhlLPL4IMUbgcEzdazDY5gy2fuk8zD54BTIjfyf8t1OgcfysbIJeCbLfhj WrPWNGkQ6pD5H5OrJoYyD/bOIX/GRcG4bd8TJMlIQoquPhuITDkTMDiaIhbgcGTfQBl9 H2wFtMPMHYrfnz9ue4lJ9wF6BKF+kd7LK2TYwWAbEM/emVXJ9VKM8WgUjvYOAN0FLqf5 neRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=AHWCgdRI; 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 l13-20020a170903244d00b0019acbf1dc4asi8574256pls.181.2023.05.02.21.31.42; Tue, 02 May 2023 21:31:56 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=AHWCgdRI; 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 S229601AbjECESJ (ORCPT + 99 others); Wed, 3 May 2023 00:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjECESI (ORCPT ); Wed, 3 May 2023 00:18:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC0C91FCF; Tue, 2 May 2023 21:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=x21ZOyqwSO6akl9eeR4mmRhulhewI5kv9bFdmjbWKCU=; b=AHWCgdRImqZ8SLjE5Si39Zr/w2 eTG00Ck5ii4BoHAOWS5HnXwslL7C5lqoHC3HFq3kDyqLEL5PFpuWEgFd+NB+tOMFJLc8YuIvPCZtU gTVxyFz5RJuKBp3GwXyo+hqS8voies41iDkSk/CoNIvblA2dZFrBNHJdlDV5AUR1leEYBiJ3PyMLi jhlxE8Q0QZXxTzUaiJwP+SL8K0XEr+hK9fFwFz76MVyEG/PlcSJHwivIV7IAolifer8nDrSstZ+DF fUJVKOwyir1uWk95PHoGBV65piKy5DTNo71fW4xIZyKmTAMPUsDc0oDaMrffxJvGIZ8EN6kBAGkKy q52u7XbQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pu3wH-003IJ3-0K; Wed, 03 May 2023 04:18:01 +0000 Date: Tue, 2 May 2023 21:18:01 -0700 From: Christoph Hellwig To: Christoph =?iso-8859-1?Q?B=F6hmwalder?= Cc: Jens Axboe , drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, Lars Ellenberg , Philipp Reisner , linux-block@vger.kernel.org, Thomas Voegtle Subject: Re: [PATCH] drbd: do not set REQ_PREFLUSH when submitting barrier Message-ID: References: <20230502092922.175857-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: <20230502092922.175857-1-christoph.boehmwalder@linbit.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 02, 2023 at 11:29:22AM +0200, Christoph B?hmwalder wrote: > struct bio *bio = bio_alloc(device->ldev->backing_bdev, 0, > - REQ_OP_FLUSH | REQ_PREFLUSH, GFP_NOIO); > + REQ_OP_FLUSH, GFP_NOIO); This isn't going to work. flush bios are (somewhat confusingly) implemented as writes with no data and the preflush flag. So this should be: REQ_OP_WRITE | REQ_PREFLUSH. and it looks like whatever flushing this does hasn't wroked for a long time.