aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/xprtrdma.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-06-07 16:47:58 -0400
committerChuck Lever <chuck.lever@oracle.com>2022-06-08 12:39:37 -0400
commit62ed448cc53b654036f7d7f3c99f299d79ad14c3 (patch)
tree8c239a47853628dff53a3829221b00baa6220910 /include/linux/sunrpc/xprtrdma.h
parentSUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer() (diff)
downloadlinux-dev-62ed448cc53b654036f7d7f3c99f299d79ad14c3.tar.xz
linux-dev-62ed448cc53b654036f7d7f3c99f299d79ad14c3.zip
SUNRPC: Optimize xdr_reserve_space()
Transitioning between encode buffers is quite infrequent. It happens about 1 time in 400 calls to xdr_reserve_space(), measured on NFSD with a typical build/test workload. Force the compiler to remove that code from xdr_reserve_space(), which is a hot path on both the server and the client. This change reduces the size of xdr_reserve_space() from 10 cache lines to 2 when compiled with -Os. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: J. Bruce Fields <bfields@fieldses.org>
Diffstat (limited to 'include/linux/sunrpc/xprtrdma.h')
0 files changed, 0 insertions, 0 deletions