Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209275
b: refs/heads/master
c: 6d98c3c
h: refs/heads/master
i:
  209273: 828e833
  209271: d7699a6
v: v3
  • Loading branch information
Wengang Wang authored and Joel Becker committed Aug 7, 2010
1 parent a47e42b commit 99f7a9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6eda3dd33f8a0ce58ee56a11351758643a698db4
refs/heads/master: 6d98c3ccb52f692f1a60339dde7c700686a5568b
5 changes: 2 additions & 3 deletions trunk/fs/ocfs2/dlm/dlmmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -3050,8 +3050,6 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,
/* check for pre-existing lock */
spin_lock(&dlm->spinlock);
res = __dlm_lookup_lockres(dlm, name, namelen, hash);
spin_lock(&dlm->master_lock);

if (res) {
spin_lock(&res->spinlock);
if (res->state & DLM_LOCK_RES_RECOVERING) {
Expand All @@ -3069,14 +3067,15 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,
spin_unlock(&res->spinlock);
}

spin_lock(&dlm->master_lock);
/* ignore status. only nonzero status would BUG. */
ret = dlm_add_migration_mle(dlm, res, mle, &oldmle,
name, namelen,
migrate->new_master,
migrate->master);

unlock:
spin_unlock(&dlm->master_lock);
unlock:
spin_unlock(&dlm->spinlock);

if (oldmle) {
Expand Down

0 comments on commit 99f7a9f

Please sign in to comment.