SUNRPC: Avoid RPC delays when exiting suspend
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 5 Nov 2019 14:10:54 +0000 (09:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2019 07:42:34 +0000 (08:42 +0100)
commit96b209dc2242245c7b418afaf6234c1a76d4975d
treec3a8b48a2a5f43d62fb5ad853b517ae8a0f5bad5
parent74dcfcd1d3e332607a985344316ccf5d0c6ef0af
SUNRPC: Avoid RPC delays when exiting suspend

commit 66eb3add452aa1be65ad536da99fac4b8f620b74 upstream.

Jon Hunter: "I have been tracking down another suspend/NFS related
issue where again I am seeing random delays exiting suspend. The delays
can be up to a couple minutes in the worst case and this is causing a
suspend test we have to fail."

Change the use of a deferrable work to a standard delayed one.

Reported-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Fixes: 7e0a0e38fcfea ("SUNRPC: Replace the queue timer with a delayed work function")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/sched.c