]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Micro-optimise when the task is known not to be sleeping
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 9 Mar 2019 17:07:17 +0000 (12:07 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Mar 2019 18:08:19 +0000 (14:08 -0400)
commitec497e55040db925c488a717bdcdcf590c7b8f8e
treeb768ab0b1d4b8a102c556f9b3b6fa1052fef933e
parentc7b58458932d38d05278e0e88332b03e17a4de1e
SUNRPC: Micro-optimise when the task is known not to be sleeping

In cases where we know the task is not sleeping, try to optimise
away the indirect call to task->tk_action() by replacing it with
a direct call.
Only change tail calls, to allow gcc to perform tail call
elimination.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/sched.h
net/sunrpc/clnt.c