From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2: prints peer node number when sending tcp msg failed -v2
Date: Fri, 12 Mar 2010 10:27:14 -0800 [thread overview]
Message-ID: <4B9A8782.1030706@oracle.com> (raw)
In-Reply-To: <201003120730.o2C7UFZi008464@rcsinet15.oracle.com>
Comments inline.
Wengang Wang wrote:
> diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
> index a659606..be24a13 100644
> --- a/fs/ocfs2/dlm/dlmmaster.c
> +++ b/fs/ocfs2/dlm/dlmmaster.c
> @@ -1309,6 +1309,8 @@ again:
> ret = o2net_send_message(DLM_MASTER_REQUEST_MSG, dlm->key, &request,
> sizeof(request), to, &response);
> if (ret < 0) {
> + mlog(ML_ERROR, "Error %d when sending message %u (key 0x%x) to "
> + "node %u\n", ret, DLM_MASTER_REQUEST_MSG, dlm->key, to);
> if (ret == -ESRCH) {
> /* should never happen */
> mlog(ML_ERROR, "TCP stack not ready!\n");
Remove this one. The error messages below handle this.
> @@ -2637,14 +2643,16 @@ retry:
> /* negative status is handled ok by caller here */
> if (ret >= 0)
> ret = status;
> - if (dlm_is_host_down(ret)) {
> - /* node is down. not involved in recovery
> - * so just keep going */
> - mlog(0, "%s: node %u was down when sending "
> - "begin reco msg (%d)\n", dlm->name, nodenum, ret);
> - ret = 0;
> + else {
> + mlog(ML_ERROR, "Error %d when sending message %u (key "
> + "0x%x) to node %u\n", ret, DLM_BEGIN_RECO_MSG,
> + dlm->key, nodenum);
> + if (dlm_is_host_down(ret)) {
> + /* node is down. not involved in recovery
> + * so just keep going */
> + ret = 0;
> + }
> }
You are changing the logic here. Please remove this code.
Maybe change 0 to ML_NOTICE in the original code.
> -
> /*
> * Prior to commit aad1b15310b9bcd59fa81ab8f2b1513b59553ea8,
> * dlm_begin_reco_handler() returned EAGAIN and not -EAGAIN.
> @@ -2662,9 +2670,6 @@ retry:
> struct dlm_lock_resource *res;
> /* this is now a serious problem, possibly ENOMEM
> * in the network stack. must retry */
> - mlog_errno(ret);
> - mlog(ML_ERROR, "begin reco of dlm %s to node %u "
> - " returned %d\n", dlm->name, nodenum, ret);
Again, leave the original code in.
prev parent reply other threads:[~2010-03-12 18:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-12 7:28 [Ocfs2-devel] [PATCH] ocfs2: prints peer node number when sending tcp msg failed -v2 Wengang Wang
2010-03-12 18:27 ` Sunil Mushran [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B9A8782.1030706@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.