From: Jan Kara Date: Tue, 6 Sep 2005 22:19:09 +0000 (-0700) Subject: [PATCH] Fix JBD race in t_forget list handling X-Git-Tag: v2.6.14-rc1~575 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c9f5c1888097c936334bf9740024520ca47b8e;p=pandora-kernel.git [PATCH] Fix JBD race in t_forget list handling Fix race between journal_commit_transaction() and other places as journal_unmap_buffer() that are adding buffers to transaction's t_forget list. We have to protect against such places by holding j_list_lock even when traversing the t_forget list. The fact that other places can only add buffers to the list makes the locking easier. OTOH the lock ranking complicates the stuff... Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed