SUNRPC: Micro-optimize __rpc_execute
authorChuck Lever <chuck.lever@oracle.com>
Wed, 3 Jan 2018 20:38:49 +0000 (15:38 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 23 Jan 2018 14:44:40 +0000 (09:44 -0500)
commit21ead9ff3dc72604d89499a1da5a18cc193ec4ff
treee378fd0d6e8e3d21f8fc4334a64cea423f3f2698
parentcf08d6f2e6e1b9f177cafbe57e7ad33a76d32c38
SUNRPC: Micro-optimize __rpc_execute

The common case: There are 13 to 14 actions per RPC, and tk_callback
is non-NULL in only one of them. There's no need to store a NULL in
the tk_callback field during each FSM step.

This slightly improves throughput results in dbench and other multi-
threaded benchmarks on my two-socket client on 56Gb InfiniBand, but
will probably be inconsequential on slower systems.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/sched.c