diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-04-11 21:16:52 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-04-11 21:41:14 +0200 |
commit | af6b61d7ef58099c82d854395a0e002be6bd036c (patch) | |
tree | 870be0f84564dbbc5ae82534bb6d98a2054ce865 /include | |
parent | NFSv4.1 fix incorrect return value in copy_file_range (diff) | |
download | linux-af6b61d7ef58099c82d854395a0e002be6bd036c.tar.xz linux-af6b61d7ef58099c82d854395a0e002be6bd036c.zip |
Revert "SUNRPC: Micro-optimise when the task is known not to be sleeping"
This reverts commit 009a82f6437490c262584d65a14094a818bcb747.
The ability to optimise here relies on compiler being able to optimise
away tail calls to avoid stack overflows. Unfortunately, we are seeing
reports of problems, so let's just revert.
Reported-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/sched.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index ec861cd0cfe8..52d41d0c1ae1 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -304,12 +304,4 @@ rpc_clnt_swap_deactivate(struct rpc_clnt *clnt) } #endif /* CONFIG_SUNRPC_SWAP */ -static inline bool -rpc_task_need_resched(const struct rpc_task *task) -{ - if (RPC_IS_QUEUED(task) || task->tk_callback) - return true; - return false; -} - #endif /* _LINUX_SUNRPC_SCHED_H_ */ |