]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Don't check RXRPC_CALL_TX_LAST after calling rxrpc_rotate_tx_window()
authorDavid Howells <dhowells@redhat.com>
Mon, 8 Oct 2018 14:46:01 +0000 (15:46 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 8 Oct 2018 14:55:20 +0000 (15:55 +0100)
commitf1079e264215371c3be3f668ce3c1737a8f4c70a
treeb51690957e1c646c7b9286dc085d85ceb4728e60
parente859108ee8bb26313c95a2bd5bc432642a712af9
rxrpc: Don't check RXRPC_CALL_TX_LAST after calling rxrpc_rotate_tx_window()

We should only call the function to end a call's Tx phase if we rotated the
marked-last packet out of the transmission buffer.

Make rxrpc_rotate_tx_window() return an indication of whether it just
rotated the packet marked as the last out of the transmit buffer, carrying
the information out of the locked section in that function.

We can then check the return value instead of examining RXRPC_CALL_TX_LAST.

Fixes: bc1ec9e62ccf ("rxrpc: Pass the last Tx packet marker in the annotation buffer")
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/input.c