]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: fix journal commit deadlock in ocfs2_convert_inline_data_to_extents
authoralex chen <alex.chen@huawei.com>
Tue, 10 Feb 2015 22:09:02 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Feb 2015 22:30:29 +0000 (14:30 -0800)
commit37d0b701716255bccf0f613ea4974c093092fd09
tree1e83f68ee33bc709a53c0f9a1fd4a4ab1d8ee612
parenta1bbed941d579ce8f41bb07977fe9f524bac0251
ocfs2: fix journal commit deadlock in ocfs2_convert_inline_data_to_extents

Similar to ocfs2_write_end_nolock() which is metioned at commit
1fcb765a41be ("ocfs2: fix journal commit deadlock"), we should unlock
pages before ocfs2_commit_trans() in ocfs2_convert_inline_data_to_extents.

Otherwise, it will cause a deadlock with journal commit threads.

Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/alloc.c