Skip to content
Commit 009a82f6 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 03e51d32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment