Files
linux-stable-mirror/include/linux/sunrpc
Chuck LeverandGreg Kroah-Hartman 6943f1073a SUNRPC: Optimize xdr_reserve_space()
[ Upstream commit 62ed448cc5 ]

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>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-21 14:53:45 +02:00
..
2024-06-21 14:52:50 +02:00
2024-06-21 14:53:37 +02:00
2024-06-21 14:53:20 +02:00
2024-06-21 14:53:45 +02:00