summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorSrinivas Eeda <srinivas.eeda@oracle.com>2010-03-31 23:32:29 +0200
committerJoel Becker <joel.becker@oracle.com>2010-05-06 03:18:08 +0200
commit23fd9abdc8f63c72fe3324e83d454ccecedaec37 (patch)
tree1757ac3807a5b235a0e485784cf9517028bc9b5c /fs/ocfs2
parentocfs2: print node # when tcp fails (diff)
downloadlinux-23fd9abdc8f63c72fe3324e83d454ccecedaec37.tar.xz
linux-23fd9abdc8f63c72fe3324e83d454ccecedaec37.zip
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')
-rw-r--r--fs/ocfs2/cluster/tcp.c3
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)
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;
}