aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJoseph Qi <[email protected]>2013-05-24 15:55:12 -0700
committerLinus Torvalds <[email protected]>2013-05-24 16:22:51 -0700
commitafe1bb73f8ed588ab6268c27c5a447fe0484e48f (patch)
tree86d5eb340a0d5041e6473d0642a17637ca441ab8 /lib/mpi/mpi-bit.c
parentd34883d4e35c0a994e91dd847a82b4c9e0c31d83 (diff)
ocfs2: unlock rw lock if inode lock failed
In ocfs2_file_aio_write(), it does ocfs2_rw_lock() first and then ocfs2_inode_lock(). But if ocfs2_inode_lock() failed, it goes to out_sems without unlocking rw lock. This will cause a bug in ocfs2_lock_res_free() when testing res->l_ex_holders, which is increased in __ocfs2_cluster_lock() and decreased in __ocfs2_cluster_unlock(). Signed-off-by: Joseph Qi <[email protected]> Cc: Joel Becker <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Li Zefan <[email protected]> Cc: "Duyongfeng (B)" <[email protected]> Acked-by: Sunil Mushran <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions