summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmthread.c
diff options
context:
space:
mode:
authorWengang Wang <wen.gang.wang@oracle.com>2010-07-16 23:13:33 +0800
committerJoel Becker <joel.becker@oracle.com>2010-08-07 10:44:20 -0700
commit6d98c3ccb52f692f1a60339dde7c700686a5568b (patch)
treec43eabf9914d413d49d0bb650314295ac9e613c2 /fs/ocfs2/dlm/dlmthread.c
parent6eda3dd33f8a0ce58ee56a11351758643a698db4 (diff)
downloadop-kernel-dev-6d98c3ccb52f692f1a60339dde7c700686a5568b.zip
op-kernel-dev-6d98c3ccb52f692f1a60339dde7c700686a5568b.tar.gz
ocfs2/dlm: fix a dead lock
When we have to take both dlm->master_lock and lockres->spinlock, take them in order lockres->spinlock and then dlm->master_lock. The patch fixes a violation of the rule. We can simply move taking dlm->master_lock to where we have dropped res->spinlock since when we access res->state and free mle memory we don't need master_lock's protection. Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com> Cc: stable@kernel.org Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmthread.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud