ocfs2: fix journal commit deadlock in ocfs2_convert_inline_data_to_extents
authoralex chen <[email protected]>
Tue, 10 Feb 2015 22:09:02 +0000 (14:09 -0800)
committerLinus Torvalds <[email protected]>
Tue, 10 Feb 2015 22:30:29 +0000 (14:30 -0800)
commit15eba0fe3eeaeb1b80489c1ebb9d47d6d7003f57
tree1e83f68ee33bc709a53c0f9a1fd4a4ab1d8ee612
parent95671c63d5ef3b8794fc9a05d44f0162cc5db425
ocfs2: fix journal commit deadlock in ocfs2_convert_inline_data_to_extents

Similar to ocfs2_write_end_nolock() which is metioned at commit
136f49b91710 ("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 <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/alloc.c