Joseph Qi b4ca2b4b57 ocfs2: goto out_unlock if ocfs2_get_clusters_nocache() failed in ocfs2_fiemap()
Last time we found there is lock/unlock bug in ocfs2_file_aio_write, and
then we did a thorough search for all lock resources in
ocfs2_inode_info, including rw, inode and open lockres and found this
bug.  My kernel version is 3.0.13, and it is also in the lastest version
3.9.  In ocfs2_fiemap, once ocfs2_get_clusters_nocache failed, it should
goto out_unlock instead of out, because we need release buffer head, up
read alloc sem and unlock inode.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Acked-by: Sunil Mushran <sunil.mushran@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-05-24 16:22:52 -07:00
..
2013-02-27 19:10:19 -08:00
2011-07-25 14:30:23 -04:00
2013-05-07 20:16:25 -07:00
2010-09-10 09:18:15 -07:00
2009-04-03 11:39:16 -07:00
2013-05-07 18:38:27 -07:00
2011-07-25 14:58:15 -07:00
2013-05-07 20:16:25 -07:00
2011-02-21 11:18:23 +08:00
2008-10-13 13:57:57 -07:00
2013-02-26 02:46:10 -05:00
2008-02-03 17:33:42 +02:00
2011-05-23 23:37:20 -07:00
2011-03-31 11:26:23 -03:00
2011-07-24 10:34:54 -07:00
2012-01-04 08:56:31 -06:00
2011-03-31 11:26:23 -03:00
2012-05-29 23:28:40 -04:00
2011-02-24 16:22:20 +08:00
2008-01-25 15:05:46 -08:00
2012-01-03 22:55:02 -05:00