Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp803293ybh; Tue, 21 Jul 2020 08:16:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuuT7Yk3saXToQpVNH2x29TB0qr6IoMhAPBGeJ4zKAaLr7jFFuUZDXG8qfpQjMiqUHgS1w X-Received: by 2002:a05:6402:542:: with SMTP id i2mr27242434edx.318.1595344610065; Tue, 21 Jul 2020 08:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595344610; cv=none; d=google.com; s=arc-20160816; b=uK7OY53XTGsfU/lcG/SkZ9U6D0MAmukO+56l+fTtPfqaxiUa82mpViu7pQJw36qcOv B4awguwmdL4ZZTzduJBplxdm0t93r8zAjdaH40gP1NFj5nmFEWrk+KbMb/A1enQpnLMR 6rEgaSdgRGXjPS08GvIlACSwvRtpJ9f/NTukV5EcjfT7kYIJt4y/xfKZwEhl3ymeLeiO gLTFFc/EYCgp4nH2LJKaq8ahx6Ol2psCpR906aQLtPOlpkcxOChEjyJlzCpFWa/4MlTs jfJEp/T3s8YU7GmH2zYqbewif+F1NBfcVfkgPCoUOXaHgrYmbW/dxUu9M4YmRUnw89Gv hf4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=L2IbMCLmXxLVXEbJI5GOxqFQTK+vaWxJ0qX9RDKgocU=; b=ZOPPy6UKijiCFBz0x50u55MzzcsIWtUdqx+T/6LszCR6RMnhJsSOlgsxMq8OJ/GzvR HhDJeBOijuBueYo2pNerHjWEZnz8UgwiwZwKCKFIohHb2yz8gF3BaQ1Z0NLT6uMGHbYq bRXlQvhFPXpYNChqDTugU8B6Yakwsb++nsCJ8xtZCO9YMgQ4Q5CH0jKLe650rAuwMzhP GjvmZW1Uz/snEG986MaFOiWtJD7DIR2h7xdOJYM/+Vcs0sQdCDg7fXAiNPL3F9akD087 ypoAQCLOeJ/suB3tc3KlpgM/2EOj6iohOOa6CEr9YyrgbBOFJbIWpLrYsIcm8JbHpbuM y0vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=N93dj4Np; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q26si12402802ejc.433.2020.07.21.08.16.25; Tue, 21 Jul 2020 08:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=N93dj4Np; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729976AbgGUPOp (ORCPT + 99 others); Tue, 21 Jul 2020 11:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728089AbgGUPOn (ORCPT ); Tue, 21 Jul 2020 11:14:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A42AAC061794; Tue, 21 Jul 2020 08:14:43 -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=L2IbMCLmXxLVXEbJI5GOxqFQTK+vaWxJ0qX9RDKgocU=; b=N93dj4NpDZw8qnGw993PSgn1jU ivKEowyzoIxKFcSLhMslSWJyETkzgzuoIPasc66y7jJmr49TmmM6FIqRUGY143DY69PpwM8wS8YQR 7RVnpRFnvczE0qeq29vnCSn1Uovtq6atrO3wT3SZML0l0UMe3gIaUqXCoEPYQKd4czRz2VdMZMEtF U9qWGdSxrVtZTR9wjXWNL5Ptkg2h5hctcStWWx7wk0z96OD32o7xtpfLsoRijWi+uA9t7PtEjkOkV NDqFHCaA14wIjI3IHpVWdqM/5bTsCrx++3zd2tlxoUOxXGXYFFCeBUBNcMop+0yi1/ih4aj2EgSbs F8xVS06g==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxtyX-0002lR-7v; Tue, 21 Jul 2020 15:14:37 +0000 Date: Tue, 21 Jul 2020 16:14:37 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: Goldwyn Rodrigues , Dave Chinner , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, Michael Kerrisk , linux-man@vger.kernel.org Subject: Re: RFC: iomap write invalidation Message-ID: <20200721151437.GI15516@casper.infradead.org> References: <20200713074633.875946-1-hch@lst.de> <20200720215125.bfz7geaftocy4r5l@fiona> <20200721145313.GA9217@lst.de> <20200721150432.GH15516@casper.infradead.org> <20200721150615.GA10330@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200721150615.GA10330@lst.de> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jul 21, 2020 at 05:06:15PM +0200, Christoph Hellwig wrote: > On Tue, Jul 21, 2020 at 04:04:32PM +0100, Matthew Wilcox wrote: > > I thought you were going to respin this with EREMCHG changed to ENOTBLK? > > Oh, true. I'll do that ASAP. Michael, could we add this to manpages? --- write.2.old 2020-07-21 11:11:17.740491825 -0400 +++ write.2 2020-07-21 11:13:05.900389249 -0400 @@ -192,6 +192,12 @@ .IR count , or the file offset is not suitably aligned. .TP +.B ENOTBLK +The file was opened with the +.B O_DIRECT +flag, and the I/O could not be completed due to another process using +the file. +.TP .B EIO A low-level I/O error occurred while modifying the inode. This error may relate to the write-back of data written by an earlier