https://github.com/torvalds/linux
Revision be07c4ed4043ab8c26f222348136141335e47a2f authored by Duane Griffin on 22 October 2008, 21:15:03 UTC, committed by Linus Torvalds on 23 October 2008, 15:55:02 UTC
The __log_wait_for_space function sits in a loop checkpointing
transactions until there is sufficient space free in the journal.
However, if there are no transactions to be processed (e.g.  because the
free space calculation is wrong due to a corrupted filesystem) it will
never progress.

Check for space being required when no transactions are outstanding and
abort the journal instead of endlessly looping.

This patch fixes the bug reported by Sami Liedes at:
http://bugzilla.kernel.org/show_bug.cgi?id=10976

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Tested-by: Sami Liedes <sliedes@cc.hut.fi>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9f818b4
History
Tip revision: be07c4ed4043ab8c26f222348136141335e47a2f authored by Duane Griffin on 22 October 2008, 21:15:03 UTC
jbd: abort instead of waiting for nonexistent transactions
Tip revision: be07c4e
File Mode Size
Makefile -rw-r--r-- 335 bytes
compat.c -rw-r--r-- 17.0 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 6.9 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mqueue.c -rw-r--r-- 30.3 KB
msg.c -rw-r--r-- 20.8 KB
msgutil.c -rw-r--r-- 2.3 KB
namespace.c -rw-r--r-- 2.5 KB
sem.c -rw-r--r-- 33.8 KB
shm.c -rw-r--r-- 25.2 KB
util.c -rw-r--r-- 23.0 KB
util.h -rw-r--r-- 4.5 KB

back to top