]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Propose, but don't immediately transmit, the final ACK for a call
authorDavid Howells <dhowells@redhat.com>
Mon, 23 Jul 2018 16:18:37 +0000 (17:18 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 Aug 2018 12:28:24 +0000 (13:28 +0100)
commita8c9826162fdb70a98194b92d8d32b32adb7c8f3
treefb47f63106bb5bd540a6ceecbcb73f4ff9e0a0f2
parentf1a7d86d7cf92bfd6f2cb19c1ee07faf4ea607a0
rxrpc: Propose, but don't immediately transmit, the final ACK for a call

The final ACK that closes out an rxrpc call needs to be transmitted by the
client unless we're going to follow up with a DATA packet for a new call on
the same channel (which implicitly ACK's the previous call, thereby saving
an ACK).

Currently, we don't do that, so if no follow on call is immediately
forthcoming, the server will resend the last DATA packet - at which point
rxrpc_conn_retransmit_call() will be triggered and will (re)send the final
ACK.  But the server has to hold on to the last packet until the ACK is
received, thereby holding up its resources.

Fix the client side to propose a delayed final ACK, to be transmitted after
a short delay, assuming the call isn't superseded by a new one.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/recvmsg.c