diff options
author | Wengang Wang <wen.gang.wang@oracle.com> | 2010-07-16 23:13:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-26 16:45:46 -0700 |
commit | 3730039f40020c1f8d1d94752ecbd1375cf705f9 (patch) | |
tree | f7b6a7c3884ca0218697f7b98c9b79407eff3df7 /fs/ocfs2/dlm/dlmthread.c | |
parent | 15ddf0fc153f54ed7c8432a18fa1ecde1a32d4bc (diff) |
ocfs2/dlm: fix a dead lock
commit 6d98c3ccb52f692f1a60339dde7c700686a5568b upstream.
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>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ocfs2/dlm/dlmthread.c')
0 files changed, 0 insertions, 0 deletions