Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5419377rwd; Wed, 24 May 2023 01:12:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Qu4SkQGEs4Dx789Z7vKjp4ku2YwXZCQt7reqqhoDha8npS7D+ehUc+LfTGB7mZf1ohCjo X-Received: by 2002:a17:90b:368a:b0:253:572f:79b2 with SMTP id mj10-20020a17090b368a00b00253572f79b2mr16353731pjb.36.1684915962298; Wed, 24 May 2023 01:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684915962; cv=none; d=google.com; s=arc-20160816; b=bhOuwAiwKyvdtzfz1TW7kIjxENWU6Uti6GCcELOVxWBIFSFc3uJQzEsxwVlCubr/je 5d3vE9i6ztWgHCNy7fl9331RRpcJ7Jx+4x2ixFRe/ORPW0qefOg7/vIibELa0vH3kurR ysZlXO8D1NtgeT4gQibAsKNYmobOpMVIEVCvD9HlzzFxM2B0xWQsoazAOzriBIN9ScKV r7yzf486F0yhLYO875dtV8SiCHa5k/xvrCveQ1Z0UG9n1+X+062QleeJUnJCLk9h+2K7 hWDPLIVaxS+YYyVkLWK0YsVoEyqv0fsvRc5aQljv+Wg+8WnCOwLOMM5v5yHb764jBkgZ 8XkQ== 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=PkhXh/TNyeXnNZOI/g5bdL7/bZLBDieBo7l7auFehJY=; b=fnTJQ5ngOyEKxYwO03APsFU9Qni7UxCcdQ+uSnBYmvKwFMlXpF7fuSqhafDCF2BtNB yg3CAUByqEQPA1HFuUGYMajgO3lL8FNG9fKiw1ytpW3FYvqZMNTjfK6IIVulOGTWmZLH +o8GUfQ0jmCOkhUwpVCFfxb1bWHfTjtf6dqxXuYSnJnvcvjc+UqLBV7+pl/UkUBvzDhz U63fLHCIdFjSYs9RI8PZNF+XTXZfsTXEI17iKY/Fw9WmX4Nniu/hodwImavybPcZw09Q GP64GHX+hTEAoxzEPxqJhjiQ1yjX8qbzWYHdewZstCKaCzOaesAiKeD91PPiXDfzR04b THNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=OXVDS+r2; 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 bs129-20020a632887000000b00519a8f54d2esi3068420pgb.479.2023.05.24.01.12.29; Wed, 24 May 2023 01:12:42 -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=OXVDS+r2; 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 S240042AbjEXIJY (ORCPT + 99 others); Wed, 24 May 2023 04:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235142AbjEXIJX (ORCPT ); Wed, 24 May 2023 04:09:23 -0400 Received: from out-47.mta1.migadu.com (out-47.mta1.migadu.com [95.215.58.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71270B3 for ; Wed, 24 May 2023 01:09:09 -0700 (PDT) Date: Wed, 24 May 2023 04:09:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684915747; 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=PkhXh/TNyeXnNZOI/g5bdL7/bZLBDieBo7l7auFehJY=; b=OXVDS+r2p27nxKKqRkqENlViSIEfqtZGoYc3kUZAvrLrMCsgBoAWydyq7TCQCOP9ytJb4X X21tXArPk8LIe/Q4J2B9PVtUETWXb4sqWXRQ4bSH/XBnuRWF2Venmm+l0ZxUIhayGx1DEF Ej6hv4vtmZ0eemIzKCYqV1JLFVorz/I= 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 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 23, 2023 at 11:43:32PM -0700, Christoph Hellwig wrote: > On Tue, May 23, 2023 at 12:35:35PM -0400, Kent Overstreet wrote: > > No, this is fundamentally because userspace controls the ordering of > > locking because the buffer passed to dio can point into any address > > space. You can't solve this by changing the locking heirarchy. > > > > If you want to be able to have locking around adding things to the > > pagecache so that things that bypass the pagecache can prevent > > inconsistencies (and we do, the big one is fcollapse), and if you want > > dio to be able to use that same locking (because otherwise dio will also > > cause page cache inconsistency), this is the way to do it. > > 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.