Received: by 10.223.164.202 with SMTP id h10csp3694485wrb; Sat, 25 Nov 2017 14:49:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMY/QbL5doofq8iD3jKZKaQwBPFexIsgXHNPys8LJHOnU/d82XiSoi6yTZdINnZGtTyVpvV5 X-Received: by 10.99.3.146 with SMTP id 140mr32399308pgd.275.1511650142605; Sat, 25 Nov 2017 14:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511650142; cv=none; d=google.com; s=arc-20160816; b=oZSk3xgPbcnR4xB+5n3DDpyaEkgHuZ+5P/rGtUCjGv5zOXPJYPpGH70IN7Af24ytVI HfcKHyJGP0gptVf9JU+OUnGdbEJJnrK9H2kL41A7CiqqwTQXQ0FLwRjp+dBLstIolzju 1LodXUZuaAdNLdks+TmKFRm2B4tJc3+iRHWuAk+t3MZ5BfNp6y56U7W+kZnO9WvX9lpa SEtx8bxMzSyMe+64HhKqfMiymZmO9pPqlOR2I6X8y7MsIztzz6nflfGKwTL+UJHqwcV4 nR32Dfmk1KL6xa1bQvViawJHYbA03kKmxEktZ2GTf/fxA5sOLNox3yKZ5/tPBk5DZvcR 0blg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=WAcCXn3JSUWEylpEzhkKKxH15aN9ijn4j5+dXZGpspQ=; b=r18KDm0iGBWZE5MzAW7wtVDc7T3WqYZ+HnWgWca3IJEazQCIUQnYjZ3j4YveTCHzrq eqyD2Ylqy4hKSLm+sMnKTQqWH1lNfnBqvDqLVUf/Qpzus1vUtV8zsmb83++QTr0KmAuO qA8b9Ds0jwGt1yOJ095rdyA0FSXN6S5I2xLymSwXqlnZgMEl1wMsjKlfjlubr2fPQ49y 0f4D992ctBkQYquy1XV2axQh4EIpgjA6a0X/tGEbJ2pvyIQg3ON+eqj23FPyZw4jYz51 JASG4fwqq5btdje1RXSvOjGDQEWC2unnnk2D3ORH0VmZv3eu9HgwvuAJlEwR0bIIlU1a vIBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si17211168pfi.27.2017.11.25.14.48.50; Sat, 25 Nov 2017 14:49:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751875AbdKYWsM (ORCPT + 81 others); Sat, 25 Nov 2017 17:48:12 -0500 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:48276 "EHLO ipmail07.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751842AbdKYWsK (ORCPT ); Sat, 25 Nov 2017 17:48:10 -0500 Received: from ppp59-167-129-252.static.internode.on.net (HELO dastard) ([59.167.129.252]) by ipmail07.adl2.internode.on.net with ESMTP; 26 Nov 2017 09:18:07 +1030 Received: from dave by dastard with local (Exim 4.80) (envelope-from ) id 1eIjF0-0004sO-SN; Sun, 26 Nov 2017 09:48:06 +1100 Date: Sun, 26 Nov 2017 09:48:06 +1100 From: Dave Chinner To: David Howells Cc: Linus Torvalds , linux-afs@vger.kernel.org, linux-fsdevel , Linux Kernel Mailing List Subject: Re: [GIT PULL] afs: Fixes Message-ID: <20171125224806.GM4094@dastard> References: <26247.1511533324@warthog.procyon.org.uk> <23134.1511649343@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23134.1511649343@warthog.procyon.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 25, 2017 at 10:35:43PM +0000, David Howells wrote: > Linus Torvalds wrote: > > > So I see in the commit message why afs needs to do this, but it's > > worth pointing out that it's > > > > (a) impossible to avoid the "inconsistent data" case for writable mmap'ed > > pages > > Doesn't clear_page_dirty_for_io() write-protect the PTE for the page to be > written out, in which case ->page_mkwrite() will get called again before the > page is redirtied? Yes, but page_mkwrite will only block on writeback in progress is if the backing device says it needs stable pages. See wait_for_stable_page(). e.g. stable pages are required if RAID is in use, otherwise modification during IO can result in broken on-disk parity/mirroring.... Cheers, Dave. -- Dave Chinner david@fromorbit.com From 1585079273454583556@xxx Sat Nov 25 22:36:32 +0000 2017 X-GM-THRID: 1584957627109406089 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread