* WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510
@ 2013-07-08 18:38 Guenter Roeck
2013-07-09 3:35 ` Theodore Ts'o
0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2013-07-08 18:38 UTC (permalink / raw)
To: linux-kernel; +Cc: Theodore Ts'o, linux-ext4, Andreas Dilger
Hi,
seen this morning with a brand new top-of-tree kernel (as of last night) plus a
couple of patches I am working on.
Due to my changes, there is a slight chance that the problem is not due to an
upstream bug, but I think that is quite unlikely (my changes are unrelated
to file system code).
If there is anything I can help to track this down, please let me know.
Thanks,
Guenter
[13071.291013] ------------[ cut here ]------------
[13071.291021] WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510()
[13071.291022] Modules linked in: ds1621 i2c_diolan_u2c(O) xt_multiport iptable_filter ip_tables x_tables snd_hda_codec_realtek spi_diolan_u2c(O) snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event hid_generic snd_rawmidi diolan_u2c_core(O) snd_seq snd_seq_device parport_pc snd_timer psmouse bnep serio_raw rfcomm ppdev bluetooth snd usbhid hid lpc_ich i915 soundcore video drm_kms_helper drm mac_hid i2c_algo_bit coretemp hwmon i2c_dev lp parport e1000e ptp pps_core [last unloaded: i2c_diolan_u2c]
[13071.291051] CPU: 5 PID: 17981 Comm: git Tainted: G O 3.10.0+ #1
[13071.291052] Hardware name: /DB65AL, BIOS ALB6510H.86A.0041.2011.0114.1553 01/14/2011
[13071.291053] 0000000000000009 ffff8803a992fca8 ffffffff81671d5c 0000000000000000
[13071.291055] ffff8803a992fce0 ffffffff81043370 ffff88030e409cb0 ffff88030e409cb0
[13071.291056] ffffffff8182b6c0 ffffffff8182b6c0 00000000ffffff9c ffff8803a992fcf0
[13071.291058] Call Trace:
[13071.291069] [<ffffffff81671d5c>] dump_stack+0x45/0x56
[13071.291072] [<ffffffff81043370>] warn_slowpath_common+0x70/0xa0
[13071.291074] [<ffffffff810433ba>] warn_slowpath_null+0x1a/0x20
[13071.291075] [<ffffffff8121145b>] ext4_evict_inode+0x41b/0x510
[13071.291078] [<ffffffff8118b24c>] evict+0xac/0x1a0
[13071.291079] [<ffffffff8118b9d5>] iput+0x105/0x190
[13071.291081] [<ffffffff811875c8>] d_kill+0xf8/0x130
[13071.291083] [<ffffffff81187cb7>] dput+0xe7/0x1c0
[13071.291085] [<ffffffff8117fa49>] SYSC_renameat+0x3a9/0x450
[13071.291087] [<ffffffff8118f629>] ? mntput_no_expire+0x49/0x160
[13071.291089] [<ffffffff8118f766>] ? mntput+0x26/0x40
[13071.291091] [<ffffffff8117358e>] ? ____fput+0xe/0x10
[13071.291094] [<ffffffff810651cc>] ? task_work_run+0xac/0xe0
[13071.291096] [<ffffffff8118241e>] SyS_renameat+0xe/0x10
[13071.291098] [<ffffffff8118243b>] SyS_rename+0x1b/0x20
[13071.291100] [<ffffffff81680f02>] system_call_fastpath+0x16/0x1b
[13071.291101] ---[ end trace 3c1a516fb2cf5d2f ]---
[15600.880124] ------------[ cut here ]------------
[15600.880134] WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510()
[15600.880136] Modules linked in: ds1621 i2c_diolan_u2c(O) xt_multiport iptable_filter ip_tables x_tables snd_hda_codec_realtek spi_diolan_u2c(O) snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event hid_generic snd_rawmidi diolan_u2c_core(O) snd_seq snd_seq_device parport_pc snd_timer psmouse bnep serio_raw rfcomm ppdev bluetooth snd usbhid hid lpc_ich i915 soundcore video drm_kms_helper drm mac_hid i2c_algo_bit coretemp hwmon i2c_dev lp parport e1000e ptp pps_core [last unloaded: i2c_diolan_u2c]
[15600.880176] CPU: 1 PID: 17263 Comm: collect2 Tainted: G W O 3.10.0+ #1
[15600.880178] Hardware name: /DB65AL, BIOS ALB6510H.86A.0041.2011.0114.1553 01/14/2011
[15600.880180] 0000000000000009 ffff8803cfbc7dd0 ffffffff81671d5c 0000000000000000
[15600.880185] ffff8803cfbc7e08 ffffffff81043370 ffff8802e2cd38b0 ffff8802e2cd38b0
[15600.880188] ffffffff8182b6c0 ffffffff8182b6c0 0000000000000000 ffff8803cfbc7e18
[15600.880192] Call Trace:
[15600.880199] [<ffffffff81671d5c>] dump_stack+0x45/0x56
[15600.880205] [<ffffffff81043370>] warn_slowpath_common+0x70/0xa0
[15600.880209] [<ffffffff810433ba>] warn_slowpath_null+0x1a/0x20
[15600.880213] [<ffffffff8121145b>] ext4_evict_inode+0x41b/0x510
[15600.880217] [<ffffffff8118b24c>] evict+0xac/0x1a0
[15600.880221] [<ffffffff8118b9d5>] iput+0x105/0x190
[15600.880225] [<ffffffff8117ee8e>] do_unlinkat+0x1de/0x240
[15600.880229] [<ffffffff81144239>] ? vm_munmap+0x59/0x70
[15600.880233] [<ffffffff81182076>] SyS_unlink+0x16/0x20
[15600.880238] [<ffffffff81680f02>] system_call_fastpath+0x16/0x1b
[15600.880241] ---[ end trace 3c1a516fb2cf5d30 ]---
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510
2013-07-08 18:38 WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510 Guenter Roeck
@ 2013-07-09 3:35 ` Theodore Ts'o
2013-07-09 4:06 ` Guenter Roeck
0 siblings, 1 reply; 5+ messages in thread
From: Theodore Ts'o @ 2013-07-09 3:35 UTC (permalink / raw)
To: Guenter Roeck; +Cc: linux-ext4, Andreas Dilger, Jan Kara
On Mon, Jul 08, 2013 at 11:38:29AM -0700, Guenter Roeck wrote:
> Hi,
>
> seen this morning with a brand new top-of-tree kernel (as of last night) plus a
> couple of patches I am working on.
>
> Due to my changes, there is a slight chance that the problem is not due to an
> upstream bug, but I think that is quite unlikely (my changes are unrelated
> to file system code).
>
> If there is anything I can help to track this down, please let me know.
>
> [13071.291013] ------------[ cut here ]------------
> [13071.291021] WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510()
Hmm, this warning was added by commit 5dc23bdd5: ext4: remove
ext4_ioend_wait().
What sort of work load are you running on this machine? Do you know
what might have triggered it?
Thanks,
- Ted
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510
2013-07-09 3:35 ` Theodore Ts'o
@ 2013-07-09 4:06 ` Guenter Roeck
2013-07-09 8:39 ` Jan Kara
0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2013-07-09 4:06 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: linux-ext4, Andreas Dilger, Jan Kara
On Mon, Jul 08, 2013 at 11:35:10PM -0400, Theodore Ts'o wrote:
> On Mon, Jul 08, 2013 at 11:38:29AM -0700, Guenter Roeck wrote:
> > Hi,
> >
> > seen this morning with a brand new top-of-tree kernel (as of last night) plus a
> > couple of patches I am working on.
> >
> > Due to my changes, there is a slight chance that the problem is not due to an
> > upstream bug, but I think that is quite unlikely (my changes are unrelated
> > to file system code).
> >
> > If there is anything I can help to track this down, please let me know.
> >
> > [13071.291013] ------------[ cut here ]------------
> > [13071.291021] WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510()
>
> Hmm, this warning was added by commit 5dc23bdd5: ext4: remove
> ext4_ioend_wait().
>
> What sort of work load are you running on this machine? Do you know
> what might have triggered it?
>
My nightly kernel builds were running at the time. This is a sequence of git
clone/checkout operations followed by builds for several targets.
I have the same kernel running on three systems, but this only happened on the
build machine, and I have not seen it again during the day.
I'll let you know if it happens again tonight.
Guenter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510
2013-07-09 4:06 ` Guenter Roeck
@ 2013-07-09 8:39 ` Jan Kara
2013-07-09 14:22 ` Guenter Roeck
0 siblings, 1 reply; 5+ messages in thread
From: Jan Kara @ 2013-07-09 8:39 UTC (permalink / raw)
To: Guenter Roeck; +Cc: Theodore Ts'o, linux-ext4, Andreas Dilger, Jan Kara
On Mon 08-07-13 21:06:58, Guenter Roeck wrote:
> On Mon, Jul 08, 2013 at 11:35:10PM -0400, Theodore Ts'o wrote:
> > On Mon, Jul 08, 2013 at 11:38:29AM -0700, Guenter Roeck wrote:
> > > Hi,
> > >
> > > seen this morning with a brand new top-of-tree kernel (as of last night) plus a
> > > couple of patches I am working on.
> > >
> > > Due to my changes, there is a slight chance that the problem is not due to an
> > > upstream bug, but I think that is quite unlikely (my changes are unrelated
> > > to file system code).
> > >
> > > If there is anything I can help to track this down, please let me know.
> > >
> > > [13071.291013] ------------[ cut here ]------------
> > > [13071.291021] WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510()
> >
> > Hmm, this warning was added by commit 5dc23bdd5: ext4: remove
> > ext4_ioend_wait().
> >
> > What sort of work load are you running on this machine? Do you know
> > what might have triggered it?
> >
> My nightly kernel builds were running at the time. This is a sequence of git
> clone/checkout operations followed by builds for several targets.
>
> I have the same kernel running on three systems, but this only happened on the
> build machine, and I have not seen it again during the day.
>
> I'll let you know if it happens again tonight.
Thanks for report. I think I see what's going on. I think we completed
bio directly in ext4_end_bio() (as it didn't need unwritten conversion) but
io_end is released only a bit later which can race with ext4_evict_inode()
as:
CPU1 CPU2
ext4_end_bio() ext4_evict_inode()
ext4_finish_bio()
end_page_writeback();
truncate_inode_pages()
evict page
WARN_ON(i_ioend_count > 0);
ext4_put_io_end_defer()
ext4_release_io_end()
dec i_ioend_count
This seems harmless. I'll see if I can easily fix this to make the warning
still useful. If not, I'll just rip out i_ioend_count completely as it's
there only as a sanity check until the new code settles down...
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510
2013-07-09 8:39 ` Jan Kara
@ 2013-07-09 14:22 ` Guenter Roeck
0 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2013-07-09 14:22 UTC (permalink / raw)
To: Jan Kara; +Cc: Theodore Ts'o, linux-ext4, Andreas Dilger
On Tue, Jul 09, 2013 at 10:39:36AM +0200, Jan Kara wrote:
> On Mon 08-07-13 21:06:58, Guenter Roeck wrote:
> > On Mon, Jul 08, 2013 at 11:35:10PM -0400, Theodore Ts'o wrote:
> > > On Mon, Jul 08, 2013 at 11:38:29AM -0700, Guenter Roeck wrote:
> > > > Hi,
> > > >
> > > > seen this morning with a brand new top-of-tree kernel (as of last night) plus a
> > > > couple of patches I am working on.
> > > >
> > > > Due to my changes, there is a slight chance that the problem is not due to an
> > > > upstream bug, but I think that is quite unlikely (my changes are unrelated
> > > > to file system code).
> > > >
> > > > If there is anything I can help to track this down, please let me know.
> > > >
> > > > [13071.291013] ------------[ cut here ]------------
> > > > [13071.291021] WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510()
> > >
> > > Hmm, this warning was added by commit 5dc23bdd5: ext4: remove
> > > ext4_ioend_wait().
> > >
> > > What sort of work load are you running on this machine? Do you know
> > > what might have triggered it?
> > >
> > My nightly kernel builds were running at the time. This is a sequence of git
> > clone/checkout operations followed by builds for several targets.
> >
> > I have the same kernel running on three systems, but this only happened on the
> > build machine, and I have not seen it again during the day.
> >
> > I'll let you know if it happens again tonight.
> Thanks for report. I think I see what's going on. I think we completed
> bio directly in ext4_end_bio() (as it didn't need unwritten conversion) but
> io_end is released only a bit later which can race with ext4_evict_inode()
> as:
> CPU1 CPU2
> ext4_end_bio() ext4_evict_inode()
> ext4_finish_bio()
> end_page_writeback();
> truncate_inode_pages()
> evict page
> WARN_ON(i_ioend_count > 0);
> ext4_put_io_end_defer()
> ext4_release_io_end()
> dec i_ioend_count
>
> This seems harmless. I'll see if I can easily fix this to make the warning
> still useful. If not, I'll just rip out i_ioend_count completely as it's
> there only as a sanity check until the new code settles down...
>
Good to hear that. It did not happen tonight, even though I ran builds on two
systems, so it must be quite rare.
It would be great if you can Cc: me on any patch. Also, if you have some
test software to trigger this condition, let me know and I'll give it a try.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-09 14:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-08 18:38 WARNING: at fs/ext4/inode.c:230 ext4_evict_inode+0x41b/0x510 Guenter Roeck
2013-07-09 3:35 ` Theodore Ts'o
2013-07-09 4:06 ` Guenter Roeck
2013-07-09 8:39 ` Jan Kara
2013-07-09 14:22 ` Guenter Roeck
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.