public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* an infinite loop in ext4 in 3.14
@ 2014-04-17 19:23 Mikulas Patocka
  2014-04-17 21:16 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Mikulas Patocka @ 2014-04-17 19:23 UTC (permalink / raw)
  To: linux-ext4, Theodore Ts'o; +Cc: linux-kernel

Hi

I hit a bug in ext4 - jbd2 was stuck in an infinite loop when remounting 
the root filesystem read-only during shutdown.

The filesystem is ext3, but it uses the ext4 driver with the following 
options: rw,relatime,discard,errors=remount-ro,data=ordered

The machine was stuck, but it was possible to obtain a stacktrace with 
Alt-SysRQ-P. I put several stacktraces here:

http://people.redhat.com/~mpatocka/crashes/ext4/

The stacktraces change in jbd2_log_do_checkpoint and 
jbd2_cleanup_journal_tail. jbd2_log_do_checkpoint doesn't call 
jbd2_cleanup_journal_tail from a loop, so the the probable location of the 
infinite loop was this piece of code in jbd2_journal_flush:

while (!err && journal->j_checkpoint_transactions != NULL) {

Mikulas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-19 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17 19:23 an infinite loop in ext4 in 3.14 Mikulas Patocka
2014-04-17 21:16 ` Theodore Ts'o
2014-04-17 22:36   ` Mikulas Patocka
2014-04-19 20:33   ` Mikulas Patocka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox