From 597c75df38a4619dcc3efc5332b4eda1b74198df Mon Sep 17 00:00:00 2001 From: Eldad Zinger Date: Tue, 18 May 2010 13:32:27 +0300 Subject: [PATCH] sdp: tx timer is deleted when sockets goes to TCP_CLOSE Signed-off-by: Eldad Zinger --- drivers/infiniband/ulp/sdp/sdp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/infiniband/ulp/sdp/sdp.h b/drivers/infiniband/ulp/sdp/sdp.h index bb258c68b73e..085ffce6b791 100644 --- a/drivers/infiniband/ulp/sdp/sdp.h +++ b/drivers/infiniband/ulp/sdp/sdp.h @@ -472,6 +472,11 @@ static inline int _sdp_exch_state(const char *func, int line, struct sock *sk, from_states); } + if (TCP_CLOSE == state) + del_timer(&sdp_sk(sk)->tx_ring.timer); + /* TODO: make sure that no one will set that timer when status is + * TCP_CLOSE */ + old = sk->sk_state; sk->sk_state = state; -- 2.50.1