]> 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)
commit94e8d67a9e83c739dd573e88f372dedc7959989d
treeb768ab0b1d4b8a102c556f9b3b6fa1052fef933e
parent270ac939af27d2a2a3fa10374d344b569b974104
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