]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ocfs2: unlock inode if deleting inode from orphan fails
authorGuozhonghua <guozhonghua@h3c.com>
Fri, 26 Feb 2016 23:19:40 +0000 (15:19 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:22:30 +0000 (10:22 +0100)
commit8963103b5851936b61c5e5266c8a0a12aeba99e4
tree46835141816bcd33318e312f18db9365229631c2
parent0bc219ef7d54ab6c3eba0b5643664690eb3e0823
ocfs2: unlock inode if deleting inode from orphan fails

BugLink: http://bugs.launchpad.net/bugs/1553179
commit a4a8481ff68a8a324a878e281bc37f18665224f7 upstream.

When doing append direct io cleanup, if deleting inode fails, it goes
out without unlocking inode, which will cause the inode deadlock.

This issue was introduced by commit cf1776a9e834 ("ocfs2: fix a tiny
race when truncate dio orohaned entry").

Signed-off-by: Guozhonghua <guozhonghua@h3c.com>
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Gang He <ghe@suse.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/ocfs2/aops.c