summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorJoseph Qi2016-09-19 23:44:33 +0200
committerLinus Torvalds2016-09-20 00:36:17 +0200
commit3bb8b653c86f6b1d2cc05aa1744fed4b18f99485 (patch)
treef1a968b08b33778b1b603857bab8465bbfe4942b /mm/memcontrol.c
parentfanotify: fix list corruption in fanotify_get_response() (diff)
downloadkernel-qcow2-linux-3bb8b653c86f6b1d2cc05aa1744fed4b18f99485.tar.gz
kernel-qcow2-linux-3bb8b653c86f6b1d2cc05aa1744fed4b18f99485.tar.xz
kernel-qcow2-linux-3bb8b653c86f6b1d2cc05aa1744fed4b18f99485.zip
ocfs2: fix double unlock in case retry after free truncate log
If ocfs2_reserve_cluster_bitmap_bits() fails with ENOSPC, it will try to free truncate log and then retry. Since ocfs2_try_to_free_truncate_log will lock/unlock global bitmap inode, we have to unlock it before calling this function. But when retry reserve and it fails with no global bitmap inode lock taken, it will unlock again in error handling branch and BUG. This issue also exists if no need retry and then ocfs2_inode_lock fails. So fix it. Fixes: 2070ad1aebff ("ocfs2: retry on ENOSPC if sufficient space in truncate log") Link: http://lkml.kernel.org/r/57D91939.6030809@huawei.com Signed-off-by: Joseph Qi <joseph.qi@huawei.com> Signed-off-by: Jiufei Xue <xuejiufei@huawei.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>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions
mn6'>|\ \ | * | MAINTAINERS: update nds32 git repo pathGreentime Hu2019-05-161-1/+1 * | | Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/s...Linus Torvalds2019-05-16