]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Start the first major timeout calculation at task creation
authorTrond Myklebust <trondmy@gmail.com>
Sun, 7 Apr 2019 17:58:56 +0000 (13:58 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 25 Apr 2019 18:18:13 +0000 (14:18 -0400)
commit4bf61c3acefede870f65069503b04c744db7cb32
tree9c9be44c34ae5f3b32daf60430a9b4e0c9fe9963
parentac829fc7153297fb5356a0b1fbc7e03537599a93
SUNRPC: Start the first major timeout calculation at task creation

When calculating the major timeout for a new task, when we know that the
connection has been broken, use the task->tk_start to ensure that we also
take into account the time spent waiting for a slot or session slot. This
ensures that we fail over soft requests relatively quickly once the
connection has actually been broken, and the first requests have
started to fail.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprt.c