diff options
author | Srinivas Eeda <srinivas.eeda@oracle.com> | 2010-03-31 21:32:29 (GMT) |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-06 01:18:08 (GMT) |
commit | 23fd9abdc8f63c72fe3324e83d454ccecedaec37 (patch) | |
tree | 1757ac3807a5b235a0e485784cf9517028bc9b5c /fs/ocfs2/cluster | |
parent | a5196ec5ef80309fd390191c548ee1f2e8a327ee (diff) | |
download | linux-23fd9abdc8f63c72fe3324e83d454ccecedaec37.tar.xz |
o2net: log socket state changes
This patch logs socket state changes that lead to socket shutdown.
Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster')
-rw-r--r-- | 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 73e743e..aa75ca3 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 "o2net: connection to " SC_NODEF_FMT + " shutdown, state %d\n", + SC_NODEF_ARGS(sc), sk->sk_state); o2net_sc_queue_work(sc, &sc->sc_shutdown_work); break; } |