]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/dlm: call dlm_lockres_put without resource spinlock
authoralex chen <alex.chen@huawei.com>
Thu, 9 Oct 2014 22:25:00 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:25:47 +0000 (22:25 -0400)
commitd6bf5b45cfa76b62a6a600391c2811f20d7ea5f9
tree20f774e8024fd220b8feb59d60da32b0583168df
parent15be2ece8ee05c75964575342a531999f7ba9bb4
ocfs2/dlm: call dlm_lockres_put without resource spinlock

dlm_lockres_put() should be called without &res->spinlock, otherwise a
deadlock case may happen.

spin_lock(&res->spinlock)
...
dlm_lockres_put
  ->dlm_lockres_release
    ->dlm_print_one_lock_resource
      ->spin_lock(&res->spinlock)

Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/dlm/dlmrecovery.c