* WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
@ 2017-03-07 21:35 Jeff Layton
2017-03-07 22:09 ` Christoph Hellwig
2017-03-08 3:29 ` Eryu Guan
0 siblings, 2 replies; 5+ messages in thread
From: Jeff Layton @ 2017-03-07 21:35 UTC (permalink / raw)
To: linux-xfs, linux-fsdevel
I was doing an xfstests run on xfs with v4.11.0-rc1, and these two
warnings popped. Looks like invalidate_inode_pages2_range failed? A
small patch to print the error there showed that it was returning
-EBUSY.
Pretty easy to reproduce by running xfstests generic/095 on a KVM guest
running v4.11.0-rc1.
[ 591.302422] run fstests generic/095 at 2017-03-07 15:38:32
[ 591.452226] XFS (vda6): Unmounting Filesystem
[ 591.825895] XFS (vda6): Mounting V5 Filesystem
[ 591.841560] XFS (vda6): Ending clean mount
[ 592.127155] ------------[ cut here ]------------
[ 592.133775] WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
[ 592.145553] Modules linked in: loop dm_flakey binfmt_misc ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_broute bridge stp llc ebtable_nat ip6table_raw ip6table_security ip6table_mangle ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 iptable_raw iptable_security iptable_mangle iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ebtable_filter ebtables ip6table_filter ip6_tables crct10dif_pclmul crc32_pclmul ghash_clmulni_intel nfsd ppdev auth_rpcgss nfs_acl lockd joydev parport_pc pcspkr acpi_cpufreq virtio_balloon parport tpm_tis tpm_tis_core i2c_piix4 tpm grace sunrpc qemu_fw_cfg xfs libcrc32c qxl drm_kms_helper ttm virtio_net virtio_console virtio_blk drm floppy crc32c_intel virtio_pci serio_raw virtio_ring virtio ata_generic pata_acpi
[ 592.158597] CPU: 2 PID: 20539 Comm: fio Not tainted 4.11.0-rc1 #17
[ 592.159584] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-1.fc25 04/01/2014
[ 592.159584] Call Trace:
[ 592.159584] dump_stack+0x63/0x86
[ 592.162726] __warn+0xcb/0xf0
[ 592.162726] warn_slowpath_null+0x1d/0x20
[ 592.162726] iomap_dio_rw+0x39a/0x3b0
[ 592.165653] ? iomap_dio_zero+0x130/0x130
[ 592.165653] xfs_file_dio_aio_write+0xd0/0x240 [xfs]
[ 592.165653] xfs_file_write_iter+0x94/0x140 [xfs]
[ 592.165653] __vfs_write+0xe5/0x160
[ 592.169128] vfs_write+0xb5/0x1a0
[ 592.169653] SyS_pwrite64+0x95/0xb0
[ 592.169653] entry_SYSCALL_64_fastpath+0x1a/0xa9
[ 592.169653] RIP: 0033:0x7fe3e565e233
[ 592.169653] RSP: 002b:00007fe3f9d06ea0 EFLAGS: 00000293 ORIG_RAX: 0000000000000012
[ 592.175968] RAX: ffffffffffffffda RBX: 00007fe3f9d09a80 RCX: 00007fe3e565e233
[ 592.179383] RDX: 0000000000000400 RSI: 0000000001804400 RDI: 0000000000000003
[ 592.181797] RBP: 00007fffbfeba050 R08: 0000000000000000 R09: 00007fe3f9d09a80
[ 592.181797] R10: 000000000001f800 R11: 0000000000000293 R12: 0000000000000000
[ 592.181797] R13: 00007fffbfeb9f9f R14: 00007fe3f9d09d40 R15: 00007fe3f9d09a80
[ 592.189085] ---[ end trace 2935e8d6d0b7a83e ]---
[ 592.201657] ------------[ cut here ]------------
[ 592.202828] WARNING: CPU: 0 PID: 20540 at fs/iomap.c:896 iomap_dio_rw+0x1b1/0x3b0
[ 592.204118] Modules linked in: loop dm_flakey binfmt_misc ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_broute bridge stp llc ebtable_nat ip6table_raw ip6table_security ip6table_mangle ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 iptable_raw iptable_security iptable_mangle iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ebtable_filter ebtables ip6table_filter ip6_tables crct10dif_pclmul crc32_pclmul ghash_clmulni_intel nfsd ppdev auth_rpcgss nfs_acl lockd joydev parport_pc pcspkr acpi_cpufreq virtio_balloon parport tpm_tis tpm_tis_core i2c_piix4 tpm grace sunrpc qemu_fw_cfg xfs libcrc32c qxl drm_kms_helper ttm virtio_net virtio_console virtio_blk drm floppy crc32c_intel virtio_pci serio_raw virtio_ring virtio ata_generic pata_acpi
[ 592.225076] CPU: 0 PID: 20540 Comm: fio Tainted: G W 4.11.0-rc1 #17
[ 592.226084] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-1.fc25 04/01/2014
[ 592.226084] Call Trace:
[ 592.229035] dump_stack+0x63/0x86
[ 592.229035] __warn+0xcb/0xf0
[ 592.229035] warn_slowpath_null+0x1d/0x20
[ 592.229035] iomap_dio_rw+0x1b1/0x3b0
[ 592.233233] ? inode_dio_wait+0xee/0x100
[ 592.233233] xfs_file_dio_aio_write+0xd0/0x240 [xfs]
[ 592.233233] xfs_file_write_iter+0x94/0x140 [xfs]
[ 592.236035] __vfs_write+0xe5/0x160
[ 592.237032] vfs_write+0xb5/0x1a0
[ 592.237032] SyS_pwrite64+0x95/0xb0
[ 592.237032] entry_SYSCALL_64_fastpath+0x1a/0xa9
[ 592.237032] RIP: 0033:0x7fe3e565e233
[ 592.241138] RSP: 002b:00007fe3f9d08ea0 EFLAGS: 00000293 ORIG_RAX: 0000000000000012
[ 592.241138] RAX: ffffffffffffffda RBX: 00007fe3f9d0ba80 RCX: 00007fe3e565e233
[ 592.241138] RDX: 0000000000000400 RSI: 0000000001806c00 RDI: 0000000000000003
[ 592.241138] RBP: 00007fffbfeba050 R08: 00007fe3f9d0ba80 R09: 00007fe3f9d0ba80
[ 592.245393] R10: 000000000000a800 R11: 0000000000000293 R12: 0000000000000000
[ 592.246611] R13: 00007fffbfeb9f9f R14: 00007fe3f9d0bd40 R15: 00007fe3f9d0ba80
[ 592.249249] ---[ end trace 2935e8d6d0b7a83f ]---
--
Jeff Layton <jlayton@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
2017-03-07 21:35 WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0 Jeff Layton
@ 2017-03-07 22:09 ` Christoph Hellwig
2017-03-08 3:29 ` Eryu Guan
1 sibling, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-03-07 22:09 UTC (permalink / raw)
To: Jeff Layton; +Cc: linux-xfs, linux-fsdevel
On Tue, Mar 07, 2017 at 04:35:59PM -0500, Jeff Layton wrote:
> I was doing an xfstests run on xfs with v4.11.0-rc1, and these two
> warnings popped.�Looks like invalidate_inode_pages2_range failed? A
> small patch to print the error there showed that it was returning
> -EBUSY.
>
> Pretty easy to reproduce by running xfstests generic/095 on a KVM guest
> running v4.11.0-rc1.
Can you try:
"[PATCH v2] iomap: invalidate page caches should be after iomap_dio_complete() in direct write"
which was sent to the XFS list last week and check if it fixes things
for you?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
@ 2017-03-07 22:09 ` Christoph Hellwig
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-03-07 22:09 UTC (permalink / raw)
To: Jeff Layton; +Cc: linux-xfs, linux-fsdevel
On Tue, Mar 07, 2017 at 04:35:59PM -0500, Jeff Layton wrote:
> I was doing an xfstests run on xfs with v4.11.0-rc1, and these two
> warnings popped. Looks like invalidate_inode_pages2_range failed? A
> small patch to print the error there showed that it was returning
> -EBUSY.
>
> Pretty easy to reproduce by running xfstests generic/095 on a KVM guest
> running v4.11.0-rc1.
Can you try:
"[PATCH v2] iomap: invalidate page caches should be after iomap_dio_complete() in direct write"
which was sent to the XFS list last week and check if it fixes things
for you?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
2017-03-07 21:35 WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0 Jeff Layton
2017-03-07 22:09 ` Christoph Hellwig
@ 2017-03-08 3:29 ` Eryu Guan
1 sibling, 0 replies; 5+ messages in thread
From: Eryu Guan @ 2017-03-08 3:29 UTC (permalink / raw)
To: Jeff Layton; +Cc: linux-xfs, linux-fsdevel
Hi Jeff,
On Tue, Mar 07, 2017 at 04:35:59PM -0500, Jeff Layton wrote:
> I was doing an xfstests run on xfs with v4.11.0-rc1, and these two
> warnings popped. Looks like invalidate_inode_pages2_range failed? A
> small patch to print the error there showed that it was returning
> -EBUSY.
>
> Pretty easy to reproduce by running xfstests generic/095 on a KVM guest
> running v4.11.0-rc1.
>
> [ 591.302422] run fstests generic/095 at 2017-03-07 15:38:32
> [ 591.452226] XFS (vda6): Unmounting Filesystem
> [ 591.825895] XFS (vda6): Mounting V5 Filesystem
> [ 591.841560] XFS (vda6): Ending clean mount
> [ 592.127155] ------------[ cut here ]------------
> [ 592.133775] WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
and
> [ 592.202828] WARNING: CPU: 0 PID: 20540 at fs/iomap.c:896 iomap_dio_rw+0x1b1/0x3b0
IIRC, these warnings are kind of "known issue", they're filtered out by
generic/095 and should not cause the test to fail. You can check the
comments before filter_xfs_dmesg() function in generic/095 test.
Did generic/095 fail for you due to dmesg check? If so I think there
might be an fstests bug. My generic/095 run on 4.11-rc1 kernel triggered
these warnings too, but test itself didn't report failure.
Thanks,
Eryu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0
2017-03-07 22:09 ` Christoph Hellwig
(?)
@ 2017-03-08 12:35 ` Jeff Layton
-1 siblings, 0 replies; 5+ messages in thread
From: Jeff Layton @ 2017-03-08 12:35 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-xfs, linux-fsdevel, Eryu Guan
On Tue, 2017-03-07 at 14:09 -0800, Christoph Hellwig wrote:
> On Tue, Mar 07, 2017 at 04:35:59PM -0500, Jeff Layton wrote:
> > I was doing an xfstests run on xfs with v4.11.0-rc1, and these two
> > warnings popped. Looks like invalidate_inode_pages2_range failed? A
> > small patch to print the error there showed that it was returning
> > -EBUSY.
> >
> > Pretty easy to reproduce by running xfstests generic/095 on a KVM guest
> > running v4.11.0-rc1.
>
> Can you try:
>
> "[PATCH v2] iomap: invalidate page caches should be after iomap_dio_complete() in direct write"
>
> which was sent to the XFS list last week and check if it fixes things
> for you?
I tried it, but the warnings still appear.
To be clear, generic/095 still passes, it's just that the warnings pop
up when it is run.
--
Jeff Layton <jlayton@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-08 14:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 21:35 WARNING: CPU: 2 PID: 20539 at fs/iomap.c:954 iomap_dio_rw+0x39a/0x3b0 Jeff Layton
2017-03-07 22:09 ` Christoph Hellwig
2017-03-07 22:09 ` Christoph Hellwig
2017-03-08 12:35 ` Jeff Layton
2017-03-08 3:29 ` Eryu Guan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.