]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Add notification of end-of-Tx phase
authorDavid Howells <dhowells@redhat.com>
Tue, 29 Aug 2017 09:18:56 +0000 (10:18 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 29 Aug 2017 09:55:20 +0000 (10:55 +0100)
commit89ddd28c3ff6ebc751410dda4e7ea32892b0a978
treed9eae5c029cf3e3439076dc79e1aaeff16bff126
parent5c7f4e9dab7d8d7ffce0c7d84ea0b0046730188e
rxrpc: Add notification of end-of-Tx phase

Add a callback to rxrpc_kernel_send_data() so that a kernel service can get
a notification that the AF_RXRPC call has transitioned out the Tx phase and
is now waiting for a reply or a final ACK.

This is called from AF_RXRPC with the call state lock held so the
notification is guaranteed to come before any reply is passed back.

Further, modify the AFS filesystem to make use of this so that we don't have
to change the afs_call state before sending the last bit of data.

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/networking/rxrpc.txt
fs/afs/rxrpc.c
include/net/af_rxrpc.h
net/rxrpc/sendmsg.c