Skip to content

Commit ba00b19

Browse files
dhowellstorvalds
authored andcommitted
afs: Fix vlserver probe RTT handling
In the same spirit as commit ca57f02 ("afs: Fix fileserver probe RTT handling"), don't rule out using a vlserver just because there haven't been enough packets yet to calculate a real rtt. Always set the server's probe rtt from the estimate provided by rxrpc_kernel_get_srtt, which is capped at 1 second. This could lead to EDESTADDRREQ errors when accessing a cell for the first time, even though the vl servers are known and have responded to a probe. Fixes: 1d4adfa ("rxrpc: Make rxrpc_kernel_get_srtt() indicate validity") Signed-off-by: Marc Dionne <[email protected]> Signed-off-by: David Howells <[email protected]> cc: [email protected] Link: http://lists.infradead.org/pipermail/linux-afs/2023-June/006746.html Signed-off-by: Linus Torvalds <[email protected]>
1 parent 4973ca2 commit ba00b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/afs/vl_probe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ void afs_vlserver_probe_result(struct afs_call *call)
115115
}
116116
}
117117

118-
if (rxrpc_kernel_get_srtt(call->net->socket, call->rxcall, &rtt_us) &&
119-
rtt_us < server->probe.rtt) {
118+
rxrpc_kernel_get_srtt(call->net->socket, call->rxcall, &rtt_us);
119+
if (rtt_us < server->probe.rtt) {
120120
server->probe.rtt = rtt_us;
121121
server->rtt = rtt_us;
122122
alist->preferred = index;

0 commit comments

Comments
 (0)