ext4: fix the deadlock in mpage_da_map_and_submit()
authorKazuya Mio <k-mio@sx.jp.nec.com>
Thu, 20 Oct 2011 23:23:08 +0000 (19:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Oct 2011 23:23:08 +0000 (19:23 -0400)
commit8de49e674a1133ab8998914a6e933ceb4b5f4b07
tree19d7d5de54b166f0d4e0ea9f57d6bcf0b451e52b
parent09e0834fb0ce1ea2a63885177015bd5d7d2bc22d
ext4: fix the deadlock in mpage_da_map_and_submit()

If ext4_jbd2_file_inode() in mpage_da_map_and_submit() fails due to
journal abort, this function returns to caller without unlocking the
page.  It leads to the deadlock, and the patch fixes this issue by
calling mpage_da_submit_io().

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c