From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] o2net: log socket state changes
Date: Wed, 31 Mar 2010 12:03:55 -0700 [thread overview]
Message-ID: <4BB39C9B.4020207@oracle.com> (raw)
In-Reply-To: <4BB399C7.8000009@oracle.com>
Can you also provide a snippet of the messages after some mounts
and umounts.
Sunil Mushran wrote:
> KERN_INFO is a good idea. But the message is a mouthful.
>
> Currently it reads:
> "node %s (num %u) at %u.%u.%u.%u:%u socket state changed to X. Shutting
> down the socket connection"
>
> How about this:
> "o2net: connection to node %s (num %u) at %u.%u.%u.%u:%u shutdown, state %d"
>
> printk(KERN_INFO "connection to " SC_NODEF_FMT " shutdown, state %d" ....);
>
> Sunil
>
>
> Srinivas Eeda wrote:
>
>> This patch logs socket state changes that lead to socket shutdown.
>>
>> Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
>> ---
>> fs/ocfs2/cluster/tcp.c | 3 +++
>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c
>> index 334f231..6d0d228 100644
>> --- a/fs/ocfs2/cluster/tcp.c
>> +++ b/fs/ocfs2/cluster/tcp.c
>> @@ -583,6 +583,9 @@ static void o2net_state_change(struct sock *sk)
>> o2net_sc_queue_work(sc, &sc->sc_connect_work);
>> break;
>> default:
>> + printk(KERN_INFO SC_NODEF_FMT " socket state"
>> + " changed to %d. Shutting down the socket "
>> + "connection\n", SC_NODEF_ARGS(sc), sk->sk_state);
>> o2net_sc_queue_work(sc, &sc->sc_shutdown_work);
>> break;
>> }
>>
>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>
next prev parent reply other threads:[~2010-03-31 19:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-31 1:27 [Ocfs2-devel] o2net: log socket state changes Srinivas Eeda
2010-03-31 18:51 ` Sunil Mushran
2010-03-31 19:03 ` Sunil Mushran [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-31 21:07 [Ocfs2-devel] o2net patch to lock socket shutdown message Srinivas Eeda
2010-03-31 21:07 ` [Ocfs2-devel] o2net: log socket state changes Srinivas Eeda
2010-03-31 21:25 ` Sunil Mushran
2010-03-31 21:32 Srinivas Eeda
2010-03-31 21:50 ` Sunil Mushran
2010-04-07 1:19 ` Joel Becker
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=4BB39C9B.4020207@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.