From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753345AbbC0Ac0 (ORCPT ); Thu, 26 Mar 2015 20:32:26 -0400 Received: from mga01.intel.com ([192.55.52.88]:32924 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752709AbbC0AcZ (ORCPT ); Thu, 26 Mar 2015 20:32:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,476,1422950400"; d="scan'208";a="704853042" Message-ID: <1427416343.17170.58.camel@linux.intel.com> Subject: Re: [LKP] [xfs] 834ffca6f7e: WARNING: CPU: 3 PID: 23390 at fs/xfs/xfs_file.c:700 xfs_file_dio_aio_write+0x27c/0x2e0() From: Huang Ying To: Dave Chinner Cc: Dave Chinner , LKML , LKP ML Date: Fri, 27 Mar 2015 08:32:23 +0800 In-Reply-To: <20150326212237.GE28129@dastard> References: <1427352319.17170.55.camel@linux.intel.com> <20150326212237.GE28129@dastard> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2015-03-27 at 08:22 +1100, Dave Chinner wrote: > On Thu, Mar 26, 2015 at 02:45:19PM +0800, Huang Ying wrote: > > FYI, we noticed the below changes on > > > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 834ffca6f7e345a79f6f2e2d131b0dfba8a4b67a ("xfs: don't zero partial page cache pages during O_DIRECT writes") > > Doing what test, exactly? Sorry, should include that information. We were running xfstests. generic/068 generic/100 generic/117 generic/120 generic/125 generic/130 generic/192 generic/209 generic/223 generic/225 generic/226 generic/230 generic/247 generic/256 generic/275 Warning were shown during testing as above. Best Regards, Huang, Ying > > [ 354.728419] XFS (vda): Unmounting Filesystem > > [ 355.133977] XFS (vda): Mounting V4 Filesystem > > [ 355.174239] XFS (vda): Ending clean mount > > [ 362.820417] WARNING: CPU: 3 PID: 23390 at fs/xfs/xfs_file.c:700 xfs_file_dio_aio_write+0x27c/0x2e0() > > [ 362.822109] Modules linked in: ipmi_watchdog ipmi_msghandler sg sr_mod cdrom ata_generic pata_acpi cirrus syscopyarea sysfillrect sysimgblt ppdev ttm ata_piix snd_pcm snd_timer drm_kms_helper libata snd microcode drm soundcore pcspkr floppy serio_raw i2c_piix4 parport_pc parport acpi_cpufreq > > [ 362.828207] CPU: 3 PID: 23390 Comm: dd Not tainted 4.0.0-rc3-next-20150311 #1 > > [ 362.829908] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014 > > [ 362.831853] ffffffff81bb5940 ffff88007d5c3d08 ffffffff818b19e6 ffff880077f901f8 > > [ 362.833873] 0000000000000000 ffff88007d5c3d48 ffffffff8107294a ffffea00010cc240 > > [ 362.835646] ffff8800570f7400 ffff8800570f75d0 0000000000000000 ffff8800570f7720 > > [ 362.837330] Call Trace: > > [ 362.838593] [] dump_stack+0x4c/0x65 > > [ 362.840023] [] warn_slowpath_common+0x8a/0xc0 > > [ 362.841652] [] warn_slowpath_null+0x1a/0x20 > > [ 362.843125] [] xfs_file_dio_aio_write+0x27c/0x2e0 > > [ 362.844694] [] xfs_file_write_iter+0x110/0x130 > > [ 362.846229] [] new_sync_write+0x81/0xb0 > > [ 362.847670] [] vfs_write+0xb7/0x1f0 > > [ 362.849152] [] ? vfs_read+0x11e/0x140 > > [ 362.850573] [] SyS_write+0x46/0xb0 > > [ 362.852055] [] system_call_fastpath+0x12/0x17 > > [ 362.853576] ---[ end trace 002c13cd5d358e1d ]--- > > That's warning about a failure to invalidate the page cache across > the region of a direct IO which is a potential data corruption > event. The open(2) man page warns that applications should not do > this.... > > Also the commit you point out as being problematic was introduced in > 3.17-rc3 as part of a series to reduce data corruption problems when > mixing concurrent O_DIRECT and buffered/mmap IO to the same file. > That warning was put there on purpose to tell us that there's a > well known reason the user is reporting data corruption.... > > Cheers, > > Dave.