ext4: fix deadlock in ext4_ordered_write_end()
authorAkira Fujita <a-fujita@rs.jp.nec.com>
Thu, 20 Oct 2011 22:56:10 +0000 (18:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Oct 2011 22:56:10 +0000 (18:56 -0400)
commit09e0834fb0ce1ea2a63885177015bd5d7d2bc22d
tree52f8efc4bd21cc93d27cfb9071decc6996065071
parentee90d57e20bd4749dda3b14397392b18b89dc3ef
ext4: fix deadlock in ext4_ordered_write_end()

If ext4_jbd2_file_inode() in ext4_ordered_write_end() fails for some
reasons, this function returns to caller without unlocking the page.
It leads to the deadlock, and the patch fixes this issue.

Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c