diff options
| author | Wengang Wang <[email protected]> | 2010-07-16 15:13:33 +0000 |
|---|---|---|
| committer | Joel Becker <[email protected]> | 2010-08-07 17:44:20 +0000 |
| commit | 6d98c3ccb52f692f1a60339dde7c700686a5568b (patch) | |
| tree | c43eabf9914d413d49d0bb650314295ac9e613c2 /fs/jbd/commit.c | |
| parent | ocfs2: do not overwrite error codes in ocfs2_init_acl (diff) | |
| download | kernel-6d98c3ccb52f692f1a60339dde7c700686a5568b.tar.gz kernel-6d98c3ccb52f692f1a60339dde7c700686a5568b.zip | |
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 <[email protected]>
Cc: [email protected]
Signed-off-by: Joel Becker <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions
