]> 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)
commit5409d49f15d5f40bdc0b1e8108819dc59b3bc500
treed9eae5c029cf3e3439076dc79e1aaeff16bff126
parent51f495c16760e0782f1ed7982473a7e976da4393
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