]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Allow the reply time to be obtained on a client call
authorDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2018 08:54:29 +0000 (09:54 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 4 Oct 2018 08:54:29 +0000 (09:54 +0100)
commit606be1ef16fc3832a9f52ba6e89abf7012de9246
treea0370ebeed307ffd982a8943f568d52567233804
parent78290921b6ec3d1665aea50669ac0dad2c7cc88b
rxrpc: Allow the reply time to be obtained on a client call

Allow the epoch value to be queried on a server connection.  This is in the
rxrpc header of every packet for use in routing and is derived from the
client's state.  It's also not supposed to change unless the client gets
restarted.

AFS can make use of this information to deduce whether a fileserver has
been restarted because the fileserver makes client calls to the filesystem
driver's cache manager to send notifications (ie. callback breaks) about
conflicting changes from other clients.  These convey the fileserver's own
epoch value back to the filesystem.

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