diff options
author | Olga Kornievskaia <olga.kornievskaia@gmail.com> | 2020-07-15 20:17:52 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-08-05 06:17:11 +0300 |
commit | 7de62bc09fe6d100ebd6c931c3f9a6fa7e6ed10f (patch) | |
tree | e83e069724fc217ee7a108c05206d099de22423b /fs/xfs | |
parent | ce368536dd614452407dc31e2449eb84681a06af (diff) | |
download | linux-7de62bc09fe6d100ebd6c931c3f9a6fa7e6ed10f.tar.xz |
SUNRPC dont update timeout value on connection reset
Current behaviour: every time a v3 operation is re-sent to the server
we update (double) the timeout. There is no distinction between whether
or not the previous timer had expired before the re-sent happened.
Here's the scenario:
1. Client sends a v3 operation
2. Server RST-s the connection (prior to the timeout) (eg., connection
is immediately reset)
3. Client re-sends a v3 operation but the timeout is now 120sec.
As a result, an application sees 2mins pause before a retry in case
server again does not reply.
Instead, this patch proposes to keep track off when the minor timeout
should happen and if it didn't, then don't update the new timeout.
Value is updated based on the previous value to make timeouts
predictable.
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions