diff options
author | Srinivas Eeda <srinivas.eeda@oracle.com> | 2010-03-31 17:32:29 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-05-05 21:18:08 -0400 |
commit | 23fd9abdc8f63c72fe3324e83d454ccecedaec37 (patch) | |
tree | 1757ac3807a5b235a0e485784cf9517028bc9b5c /fs/ocfs2/cluster/tcp.c | |
parent | a5196ec5ef80309fd390191c548ee1f2e8a327ee (diff) |
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/tcp.c')
-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 73e743eea2c8..aa75ca3f78da 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) | |||
583 | o2net_sc_queue_work(sc, &sc->sc_connect_work); | 583 | o2net_sc_queue_work(sc, &sc->sc_connect_work); |
584 | break; | 584 | break; |
585 | default: | 585 | default: |
586 | printk(KERN_INFO "o2net: connection to " SC_NODEF_FMT | ||
587 | " shutdown, state %d\n", | ||
588 | SC_NODEF_ARGS(sc), sk->sk_state); | ||
586 | o2net_sc_queue_work(sc, &sc->sc_shutdown_work); | 589 | o2net_sc_queue_work(sc, &sc->sc_shutdown_work); |
587 | break; | 590 | break; |
588 | } | 591 | } |