]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Refactor rpc_sleep_on()
authorTrond Myklebust <trondmy@gmail.com>
Sun, 7 Apr 2019 17:58:47 +0000 (13:58 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 25 Apr 2019 18:18:12 +0000 (14:18 -0400)
commite43363251de7db332ba507128752ee4da0a845e1
treef2798dbd3e09d27a0f6a00578eb6b3533d11c829
parente811832e16b47a1a69a66eb98f1cb20b6fa64e7f
SUNRPC: Refactor rpc_sleep_on()

rpc_sleep_on() does not need to set the task->tk_callback under the
queue lock, so move that out.
Also refactor the check for whether the task is active.

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