summaryrefslogtreecommitdiffstats
path: root/fs/afs/rxrpc.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2019-05-14 11:44:26 +0100
committerDavid Howells <dhowells@redhat.com>2019-05-16 16:25:21 +0100
commit4571577f16c82f8db8133b228cdca5fd61042c77 (patch)
tree70bf2518622a0b4d0c172f7ebbd05a193805224d /fs/afs/rxrpc.c
parent87182759cd6f94875d6aaaac74eaa52aa6aa6f98 (diff)
downloadlinux-stable-4571577f16c82f8db8133b228cdca5fd61042c77.tar.gz
linux-stable-4571577f16c82f8db8133b228cdca5fd61042c77.tar.bz2
linux-stable-4571577f16c82f8db8133b228cdca5fd61042c77.zip
afs: Always get the reply time
Always ask for the reply time from AF_RXRPC as it's used to calculate the callback expiry time and lock expiry times, so it's needed by most FS operations. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/rxrpc.c')
-rw-r--r--fs/afs/rxrpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c
index d63e0c9c09e7..4fa5ce92b9b9 100644
--- a/fs/afs/rxrpc.c
+++ b/fs/afs/rxrpc.c
@@ -534,11 +534,11 @@ static void afs_deliver_to_call(struct afs_call *call)
return;
}
- if (call->want_reply_time &&
+ if (!call->have_reply_time &&
rxrpc_kernel_get_reply_time(call->net->socket,
call->rxcall,
&call->reply_time))
- call->want_reply_time = false;
+ call->have_reply_time = true;
ret = call->type->deliver(call);
state = READ_ONCE(call->state);