diff options
author | David Howells <dhowells@redhat.com> | 2018-10-04 10:54:29 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-04 10:54:29 +0200 |
commit | e908bcf4f1a271e7c264dcbffc5881ced8bfacee (patch) | |
tree | a0370ebeed307ffd982a8943f568d52567233804 /include/net/af_rxrpc.h | |
parent | rxrpc: Allow the reply time to be obtained on a client call (diff) | |
download | linux-e908bcf4f1a271e7c264dcbffc5881ced8bfacee.tar.xz linux-e908bcf4f1a271e7c264dcbffc5881ced8bfacee.zip |
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>
Diffstat (limited to 'include/net/af_rxrpc.h')
-rw-r--r-- | include/net/af_rxrpc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/af_rxrpc.h b/include/net/af_rxrpc.h index c4c912554dee..de587948042a 100644 --- a/include/net/af_rxrpc.h +++ b/include/net/af_rxrpc.h @@ -78,6 +78,7 @@ int rxrpc_kernel_retry_call(struct socket *, struct rxrpc_call *, int rxrpc_kernel_check_call(struct socket *, struct rxrpc_call *, enum rxrpc_call_completion *, u32 *); u32 rxrpc_kernel_check_life(struct socket *, struct rxrpc_call *); +u32 rxrpc_kernel_get_epoch(struct socket *, struct rxrpc_call *); bool rxrpc_kernel_get_reply_time(struct socket *, struct rxrpc_call *, ktime_t *); |