linux/fs/jbd
Jan Kara 2842bb20ee jbd: Fix forever sleeping process in do_get_write_access()
In do_get_write_access() we wait on BH_Unshadow bit for buffer to get
from shadow state. The waking code in journal_commit_transaction() has
a bug because it does not issue a memory barrier after the buffer is moved
from the shadow state and before wake_up_bit() is called. Thus a waitqueue
check can happen before the buffer is actually moved from the shadow state
and waiting process may never be woken. Fix the problem by issuing proper
barrier.

CC: stable@kernel.org
Reported-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2011-05-17 13:47:42 +02:00
..
checkpoint.c jbd: Convert atomic_inc() to get_bh() 2010-10-28 01:30:05 +02:00
commit.c jbd: Fix forever sleeping process in do_get_write_access() 2011-05-17 13:47:42 +02:00
journal.c jbd: fix fsync() tid wraparound bug 2011-05-17 13:47:41 +02:00
Kconfig Revert "task_struct: make journal_info conditional" 2009-12-17 13:23:24 -08:00
Makefile
recovery.c jbd: Move debug message into #ifdef area 2010-10-28 01:30:01 +02:00
revoke.c Fix common misspellings 2011-03-31 11:26:23 -03:00
transaction.c Fix common misspellings 2011-03-31 11:26:23 -03:00