diff options
| author | David Howells <[email protected]> | 2022-11-28 22:02:56 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-11-29 02:40:07 +0000 |
| commit | ca57f02295f188d6c65ec02202402979880fa6d8 (patch) | |
| tree | f07b10e0876285ea7174fd79bf91aa947d089ed4 /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | |
| parent | Merge tag 'devicetree-fixes-for-6.1-2' of git://git.kernel.org/pub/scm/linux/... (diff) | |
| download | kernel-ca57f02295f188d6c65ec02202402979880fa6d8.tar.gz kernel-ca57f02295f188d6c65ec02202402979880fa6d8.zip | |
afs: Fix fileserver probe RTT handling
The fileserver probing code attempts to work out the best fileserver to
use for a volume by retrieving the RTT calculated by AF_RXRPC for the
probe call sent to each server and comparing them. Sometimes, however,
no RTT estimate is available and rxrpc_kernel_get_srtt() returns false,
leading good fileservers to be given an RTT of UINT_MAX and thus causing
the rotation algorithm to ignore them.
Fix afs_select_fileserver() to ignore rxrpc_kernel_get_srtt()'s return
value and just take the estimated RTT it provides - which will be capped
at 1 second.
Fixes: 1d4adfaf6574 ("rxrpc: Make rxrpc_kernel_get_srtt() indicate validity")
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Marc Dionne <[email protected]>
Tested-by: Marc Dionne <[email protected]>
cc: [email protected]
Link: https://lore.kernel.org/r/166965503999.3392585.13954054113218099395.stgit@warthog.procyon.org.uk/
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions
