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)
commit009a82f6437490c262584d65a14094a818bcb747
treeb768ab0b1d4b8a102c556f9b3b6fa1052fef933e
parent03e51d32da995030a16697038232171807eeb0f2
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