diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-10-01 21:25:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-24 10:19:49 +0300 |
commit | 6cedfaffb4acb43225be0812e0f92889026517b4 (patch) | |
tree | 97308c0cb42da59dbbd92abfdec286b698a28639 /samples | |
parent | 7e4602eac6664330b47a5a74ab423b0b4dd90ad3 (diff) | |
download | linux-6cedfaffb4acb43225be0812e0f92889026517b4.tar.xz |
sunrpc: Fix connect metrics
[ Upstream commit 3968a8a5310404c2f0b9e4d9f28cab13a12bc4fd ]
For TCP, the logic in xprt_connect_status is currently never invoked
to record a successful connection. Commit 2a4919919a97 ("SUNRPC:
Return EAGAIN instead of ENOTCONN when waking up xprt->pending")
changed the way TCP xprt's are awoken after a connect succeeds.
Instead, change connection-oriented transports to bump connect_count
and compute connect_time the moment that XPRT_CONNECTED is set.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions