Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp806924rwr; Thu, 4 May 2023 09:47:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7h2e1uXx/BP5U9chJwlZNeqPFdQwYPcAGH1Q4lZcGTbkq86OcTxDac8sUSnJycI3j4ratD X-Received: by 2002:a17:903:2443:b0:1a6:fe25:4129 with SMTP id l3-20020a170903244300b001a6fe254129mr5562590pls.0.1683218858208; Thu, 04 May 2023 09:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683218858; cv=none; d=google.com; s=arc-20160816; b=Go1JskNb+zz21ps7iOCxTU7eOq5V9CxLgG7yLveU+M0Fm0M6taFQicTgBvYxyAZOoX Qilm7WhDahTRMztrnGY5akJ721BJ92r7/p02qhktILwc0wifubQnqweyeqgMwzmO+VEx zagAqhkvlGnD8scFGtBnzloS1B1GinCuCtS/eB+95evgs3T/BKfGbJj+BsKN1NcWBbs8 SbH7oEPb7pi3xTf17+z+lVA1EpBmWryyoDFeprZjlMWWx9jXHjYYBX3bdYKv0kHsMFPl 0VFkQt8Ii7olFyGyhw5hBq04PUcOHdfepDJJCvGpaAshoJVyyBfT3p/q07QkWVDc3ZK1 DklQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zFZTZFGHSAaSaRqnlF9L7Mtetmpu66yO8W+jO7gZ4I8=; b=vV0ZX4S0LreGl/yijBw72ZVGjPFvvhkKh+Luaxu68IWZ0wRaJGe2TPNirs7lVEO5X7 reXPCutNIITQ494c1RUuw/4zUAx5plookD7lMVAVoQclWT1nkDR6WEu1QAF8gm4srwBi 7SktLJWE2zKZDt+GDhTX2OeOfkP9TAEK+cWRrzLmMZas555l94vUNrf4x+xSwkRaCO8x ZkakrA7mYUuOunYqNtWbaq1mOlylVk4YWIlWhtFmCTAxJOPu/j/Jxu0ufxJqG9lW3ynf DLWFxF12nckPfDIFXXrhSRQvNS3TkHpX6tquRwxskwdvhkMzasHMLXwPFTMHEN+aT+BY dzMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=j9+9AV0i; 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 e14-20020a170902784e00b001a51cc721b8si32452688pln.327.2023.05.04.09.47.13; Thu, 04 May 2023 09:47:38 -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=casper.20170209 header.b=j9+9AV0i; 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 S229642AbjEDQRA (ORCPT + 99 others); Thu, 4 May 2023 12:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjEDQQ6 (ORCPT ); Thu, 4 May 2023 12:16:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84981FC3; Thu, 4 May 2023 09:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zFZTZFGHSAaSaRqnlF9L7Mtetmpu66yO8W+jO7gZ4I8=; b=j9+9AV0iknIZd5Bxy8jMMN7joo KgIOfrpe2djpey8XRz8Eb3d3iK4yT0wVCClkbuOK/N5PBQrKLEHoZabloBoe7IzblwMeik9NylOl4 06FlUKctHO5+LU9jWJOHJolNiRBJx1oWezv7u9WvXW2eqCvtEBVwjga8j/oh7a/ZtmfOutpjP2Eia xqUnK5byNVUUH2iVpxBg7ORKCYWZUm+zyWJiFdE2x9AxfblMmMSyPFOk63OWz1PE6lL3io2wHK2UF sT9PQjNjCR60MlYbGjiBfceJ+YnxuOP1f8Dff1k8Q2b9VA88H3R9MCTbN6QsvAmVeV5iP8qW/vffd +PfS0YdQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pubdQ-00Akfm-Hg; Thu, 04 May 2023 16:16:48 +0000 Date: Thu, 4 May 2023 17:16:48 +0100 From: Matthew Wilcox To: Jan Kara Cc: Christoph Hellwig , Ilya Dryomov , Johannes Thumshirn , Jens Axboe , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: always respect QUEUE_FLAG_STABLE_WRITES on the block device Message-ID: References: <20230504105624.9789-1-idryomov@gmail.com> <20230504135515.GA17048@lst.de> <20230504155556.t6byee6shgb27pw5@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504155556.t6byee6shgb27pw5@quack3> 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 Thu, May 04, 2023 at 05:55:56PM +0200, Jan Kara wrote: > For bdev address_space that's easy but what Ilya also mentioned is a > problem when 'stable_write' flag gets toggled on the device and in that > case having to propagate the flag update to all the address_space > structures is a nightmare... We have a number of flags which don't take effect when modified on a block device with a mounted filesystem on it. For example, modifying the readahead settings do not change existing files, only new ones. Since this flag is only modifiable for debugging purposes, I think I'm OK with it not affecting already-mounted filesystems. It feels like a decision that reasonable people could disagree on, though.