]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2/dlm: unlock lockres spinlock before dlm_lockres_put
authorJoseph Qi <joseph.qi@huawei.com>
Thu, 22 Oct 2015 20:32:29 +0000 (13:32 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 26 Nov 2016 23:43:20 +0000 (15:43 -0800)
commitc267ae6e374a79401258c5ed5e94019cd832c89b
treea9bdd73089a5a410332d12b8884a765fb5e521c9
parent7365cd6504067b01485945506dec93fa9863c59c
ocfs2/dlm: unlock lockres spinlock before dlm_lockres_put

dlm_lockres_put will call dlm_lockres_release if it is the last
reference, and then it may call dlm_print_one_lock_resource and
take lockres spinlock.

So unlock lockres spinlock before dlm_lockres_put to avoid deadlock.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit b67de018b37a97548645a879c627d4188518e907)

Orabug: 24939243

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
fs/ocfs2/dlm/dlmmaster.c
fs/ocfs2/dlm/dlmrecovery.c