From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932097AbdKNRSI (ORCPT ); Tue, 14 Nov 2017 12:18:08 -0500 Received: from imap.thunk.org ([74.207.234.97]:44364 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754153AbdKNRR5 (ORCPT ); Tue, 14 Nov 2017 12:17:57 -0500 Date: Tue, 14 Nov 2017 12:17:44 -0500 From: "Theodore Ts'o" To: Linus Torvalds Cc: "Darrick J. Wong" , Jens Axboe , Eric Biggers , Eryu Guan , Fengguang Wu , Lukas Czerner , Jan Kara , Jeff Moyer , Linux Kernel Mailing List , linux-fsdevel , xfs Subject: Re: [btrfs] WARNING: CPU: 0 PID: 6379 at fs/direct-io.c:293 dio_complete+0x1d4/0x220 Message-ID: <20171114171744.463cudlhypbevja3@thunk.org> Mail-Followup-To: Theodore Ts'o , Linus Torvalds , "Darrick J. Wong" , Jens Axboe , Eric Biggers , Eryu Guan , Fengguang Wu , Lukas Czerner , Jan Kara , Jeff Moyer , Linux Kernel Mailing List , linux-fsdevel , xfs References: <20171030072021.gcgpaolo5m3myuln@wfg-t540p.sh.intel.com> <20171030074429.GC3283@eguan.usersys.redhat.com> <20171031001041.5qjzn5pjertpdc3e@wfg-t540p.sh.intel.com> <20171031065417.GD3283@eguan.usersys.redhat.com> <20171106011306.GB11631@zzz.localdomain> <20171113191322.GA123488@gmail.com> <20171113215601.GD6246@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 13, 2017 at 02:01:36PM -0800, Linus Torvalds wrote: > > And in the end, maybe even the warning is pointless. You used > direct-IO and cached IO at the same time, and you got coherency > issues. What did you expect? directio is fundamentally broken. A single warning per inode, "page cache coherency broken due to direct I/O; userspace did a dumb thing; oh, well" is probably more than sufficient. The reason to have the warning is so that when the user complains about the file system bug, we can point at the "userspace did a dumb thing" warning message. - Ted