Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1516059rwd; Thu, 25 May 2023 13:54:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SEO/UVLJGblx3y91k3KmKBDb/H2xsLxqX+JHE82KXwpzN2IBLJ7y6oDnC38kDhnaA7Vzg X-Received: by 2002:a05:6a20:8f05:b0:10b:b25d:3a9a with SMTP id b5-20020a056a208f0500b0010bb25d3a9amr18506961pzk.3.1685048081220; Thu, 25 May 2023 13:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685048081; cv=none; d=google.com; s=arc-20160816; b=tRX8lIjNa4NXlOgPx1fNC4izHoLsLTAf6cA1U1dzfhhhtOaRUkF/5HwVBuCEWDYD8o duRx7QSz4V/YBEmOMdpDkou+DBIMb3gtbHco4PDyfkBkt+4NoJiPgDOTCmB12cKu5/ZQ Nq+r2+DnP7UfXF/GWMpFb7AfM1rEMoWQNCXg4EQintMkqK1VGg2IiCeGqGnlBHsMzOdP pGJ+Uf0wYmvowz8HFw9NrrXKVm2DlcTm7PDK6uD6270uJ68E12gNDcnQcqc26OQtZMF7 0y9MhEo4SZHYRDh4bSGas2nPYOIjZ07MYgmBoLnaET4g5q1XlecJ0hLrVaVCf6Zr7BXd vjOQ== 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:dkim-signature:date; bh=WmfPfoS4jj9y7WKgyiPfXOC2ErdWT8XZ/X5AqeuiIvY=; b=qxU7GbDVGhvr9rF4bqrxwG/sLaJiGCOFTdZ4jSlWzP6hrQFhPm9yGnDwhZ9aUJwQoD 5+SeOw8pQI6PhC6oxsi3PnI3OUUgiF5cH7e6GCjLHAAi4hnFOY+ovj0w2VvFhpgouveK gk8JaAamtRmH+9JixAhG+nt4jyRCrxU7znPzay07cfR5dNRxlviFhvNN7CBUOOtM2t4K TG4R6xWQ9fbOX6GO/FRbTG3cRhG+Sz4nZS4H+uxUvBN0tPnQb8dVxNAD04xkF9MKmqsY QWvJt1Krux5aek0DuUb0Voo4i2DVJRMG2AbIHzZL2R1SWpam074NSpYcHIlYMPwdl7R0 3Xzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EsFQnhWQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a633d02000000b0050f6925a400si1971710pga.589.2023.05.25.13.54.24; Thu, 25 May 2023 13:54:41 -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=@linux.dev header.s=key1 header.b=EsFQnhWQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241789AbjEYUuw (ORCPT + 99 others); Thu, 25 May 2023 16:50:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235214AbjEYUuv (ORCPT ); Thu, 25 May 2023 16:50:51 -0400 Received: from out-29.mta0.migadu.com (out-29.mta0.migadu.com [IPv6:2001:41d0:1004:224b::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93933195 for ; Thu, 25 May 2023 13:50:48 -0700 (PDT) Date: Thu, 25 May 2023 16:50:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1685047846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WmfPfoS4jj9y7WKgyiPfXOC2ErdWT8XZ/X5AqeuiIvY=; b=EsFQnhWQTrj+rmlpTX4RWnBGc2mpA6pFy2Kn2DCNbDk52KibH1PGP6V1h55k5hv+yRNNDH shyCxzGmJoN16x/T0NKjA9kYwRUP6WV6ZjwpI+q4yD3iCBb6ajvr/aYyEpmYzcizmHIy4A ZQGonNJHSUUv2wJf9DbeQHWLqUswQYM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Christoph Hellwig Cc: Jan Kara , cluster-devel@redhat.com, "Darrick J . Wong" , linux-kernel@vger.kernel.org, dhowells@redhat.com, linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Kent Overstreet Subject: Re: [Cluster-devel] [PATCH 06/32] sched: Add task_struct->faults_disabled_mapping Message-ID: References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-7-kent.overstreet@linux.dev> <20230510010737.heniyuxazlprrbd6@quack3> <20230523133431.wwrkjtptu6vqqh5e@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 25, 2023 at 01:58:13AM -0700, Christoph Hellwig wrote: > On Wed, May 24, 2023 at 04:09:02AM -0400, Kent Overstreet wrote: > > > Well, it seems like you are talking about something else than the > > > existing cases in gfs2 and btrfs, that is you want full consistency > > > between direct I/O and buffered I/O. That's something nothing in the > > > kernel has ever provided, so I'd be curious why you think you need it > > > and want different semantics from everyone else? > > > > Because I like code that is correct. > > Well, start with explaining your definition of correctness, why everyone > else is "not correct", an how you can help fixing this correctness > problem in the existing kernel. Thanks for your cooperation! A cache that isn't actually consistent is a _bug_. You're being Obsequious. And any time this has come up in previous discussions (including at LSF), that was never up for debate, the only question has been whether it was even possible to practically fix it. The DIO code recognizes cache incoherency as something to be avoided by shooting down the page cache both at the beginning of the IO _and again at the end_. That's the kind of obvious hackery for a race condition that we would like to avoid. Regarding the consequences of this kind of bug - stale data exposed to userspace, possibly stale data overwriting a write we acked, and worse any filesystem state that hangs off the page cache being inconsistent with the data on disk. And look, we've been over all this before, so I don't see what this adds to the discussion.