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:
parent
a5196ec5ef
commit
23fd9abdc8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue