inet: remove icsk_ack.blocked
TCP has been using it to work around the possibility of tcp_delack_timer()
finding the socket owned by user.
After commit 6f458dfb40 ("tcp: improve latencies of timer triggered events")
we added TCP_DELACK_TIMER_DEFERRED atomic bit for more immediate recovery,
so we can get rid of icsk_ack.blocked
This frees space that following patch will reuse.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
20c168be68
commit
b6b6d6533a
@@ -1538,10 +1538,8 @@ void tcp_cleanup_rbuf(struct sock *sk, int copied)
|
||||
|
||||
if (inet_csk_ack_scheduled(sk)) {
|
||||
const struct inet_connection_sock *icsk = inet_csk(sk);
|
||||
/* Delayed ACKs frequently hit locked sockets during bulk
|
||||
* receive. */
|
||||
if (icsk->icsk_ack.blocked ||
|
||||
/* Once-per-two-segments ACK was not sent by tcp_input.c */
|
||||
|
||||
if (/* Once-per-two-segments ACK was not sent by tcp_input.c */
|
||||
tp->rcv_nxt - tp->rcv_wup > icsk->icsk_ack.rcv_mss ||
|
||||
/*
|
||||
* If this read emptied read buffer, we send ACK, if
|
||||
|
||||
Reference in New Issue
Block a user