keepalive timer manages a socket reference count regardless to the initial
socket reference (SOCK_REF_ALIVE).
Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
#define SOCK_REF_DREQ_TO "DREQ_TO" /* dreq timeout is pending */
#define SOCK_REF_ZCOPY "ZCOPY" /* zcopy send in process */
#define SOCK_REF_RDMA_RD "RDMA_RD" /* RDMA read in process */
+#define SOCK_REF_KEEPALIVE "KEEPALIVE" /* socket is held by sk_reset_timer */
#define sock_hold(sk, msg) sock_ref(sk, msg, sock_hold)
#define sock_put(sk, msg) sock_ref(sk, msg, sock_put)
out:
bh_unlock_sock(sk);
- sock_put(sk, SOCK_REF_ALIVE);
+ sock_put(sk, SOCK_REF_KEEPALIVE);
}
static void sdp_init_keepalive_timer(struct sock *sk)