diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmmaster.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmmaster.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index 94b97fc6a88e..6d098b89d46e 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c | |||
@@ -3050,8 +3050,6 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data, | |||
3050 | /* check for pre-existing lock */ | 3050 | /* check for pre-existing lock */ |
3051 | spin_lock(&dlm->spinlock); | 3051 | spin_lock(&dlm->spinlock); |
3052 | res = __dlm_lookup_lockres(dlm, name, namelen, hash); | 3052 | res = __dlm_lookup_lockres(dlm, name, namelen, hash); |
3053 | spin_lock(&dlm->master_lock); | ||
3054 | |||
3055 | if (res) { | 3053 | if (res) { |
3056 | spin_lock(&res->spinlock); | 3054 | spin_lock(&res->spinlock); |
3057 | if (res->state & DLM_LOCK_RES_RECOVERING) { | 3055 | if (res->state & DLM_LOCK_RES_RECOVERING) { |
@@ -3069,14 +3067,15 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data, | |||
3069 | spin_unlock(&res->spinlock); | 3067 | spin_unlock(&res->spinlock); |
3070 | } | 3068 | } |
3071 | 3069 | ||
3070 | spin_lock(&dlm->master_lock); | ||
3072 | /* ignore status. only nonzero status would BUG. */ | 3071 | /* ignore status. only nonzero status would BUG. */ |
3073 | ret = dlm_add_migration_mle(dlm, res, mle, &oldmle, | 3072 | ret = dlm_add_migration_mle(dlm, res, mle, &oldmle, |
3074 | name, namelen, | 3073 | name, namelen, |
3075 | migrate->new_master, | 3074 | migrate->new_master, |
3076 | migrate->master); | 3075 | migrate->master); |
3077 | 3076 | ||
3078 | unlock: | ||
3079 | spin_unlock(&dlm->master_lock); | 3077 | spin_unlock(&dlm->master_lock); |
3078 | unlock: | ||
3080 | spin_unlock(&dlm->spinlock); | 3079 | spin_unlock(&dlm->spinlock); |
3081 | 3080 | ||
3082 | if (oldmle) { | 3081 | if (oldmle) { |