提交 588e0090 编写于 作者: K Kurt Hackel 提交者: Mark Fasheh

ocfs2: do not send master requests to localhost

Signed-off-by: NKurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
上级 8b219809
...@@ -994,12 +994,14 @@ static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm, ...@@ -994,12 +994,14 @@ static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm,
spin_unlock(&res->spinlock); spin_unlock(&res->spinlock);
/* this will cause the master to re-assert across /* this will cause the master to re-assert across
* the whole cluster, freeing up mles */ * the whole cluster, freeing up mles */
ret = dlm_do_master_request(mle, res->owner); if (res->owner != dlm->node_num) {
if (ret < 0) { ret = dlm_do_master_request(mle, res->owner);
/* give recovery a chance to run */ if (ret < 0) {
mlog(ML_ERROR, "link to %u went down?: %d\n", res->owner, ret); /* give recovery a chance to run */
msleep(500); mlog(ML_ERROR, "link to %u went down?: %d\n", res->owner, ret);
goto recheck; msleep(500);
goto recheck;
}
} }
ret = 0; ret = 0;
goto leave; goto leave;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册