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>
This commit is contained in:

committed by
Joel Becker

parent
a5196ec5ef
commit
23fd9abdc8
@@ -583,6 +583,9 @@ static void o2net_state_change(struct sock *sk)
|
|||||||
o2net_sc_queue_work(sc, &sc->sc_connect_work);
|
o2net_sc_queue_work(sc, &sc->sc_connect_work);
|
||||||
break;
|
break;
|
||||||
default:
|
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);
|
o2net_sc_queue_work(sc, &sc->sc_shutdown_work);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user