]> 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)
commite539f750a5dffa82c865ba7f3bfedc85c87362b3
treea0370ebeed307ffd982a8943f568d52567233804
parent4a9ce5f6d19b2cd2ef0c777560ba4c99a765812c
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