rxrpc: Make rxrpc_kernel_get_srtt() indicate validity
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Aug 2020 14:13:00 +0000 (15:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:14 +0000 (19:14 +0200)
commitfeb72ac627bcf0891bc3783112b67ec7f6c7e9ac
tree467a225b9c9689ded1042ba0af58f2a8974f3a0b
parent26457829b759c6a696c09988fe361f7cc15f824e
rxrpc: Make rxrpc_kernel_get_srtt() indicate validity

[ Upstream commit 1d4adfaf65746203861c72d9d78de349eb97d528 ]

Fix rxrpc_kernel_get_srtt() to indicate the validity of the returned
smoothed RTT.  If we haven't had any valid samples yet, the SRTT isn't
useful.

Fixes: c410bf01933e ("rxrpc: Fix the excessive initial retransmission timeout")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/afs/fs_probe.c
fs/afs/vl_probe.c
include/net/af_rxrpc.h
net/rxrpc/peer_object.c