diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-12-30 19:28:56 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-01-10 23:43:25 -0500 |
commit | 4163ee711cf141ada9e884a94e6e329431547fd7 (patch) | |
tree | 32a10cbf3bea92ea7705a4b3a787e99c866a7b43 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b786caa65d4baa73257487e27ebab9004dc768d1 (diff) |
NFSD: Insulate nfsd4_encode_fattr4() from page boundaries in the encode buffer
Commit ab04de60ae1c ("NFSD: Optimize nfsd4_encode_fattr()") replaced
the use of write_bytes_to_xdr_buf() because it's expensive and the
data items to be encoded are already properly aligned.
However, there's no guarantee that the pointer returned from
xdr_reserve_space() will still point to the correct reserved space
in the encode buffer after one or more intervening calls to
xdr_reserve_space(). It just happens to work with the current
implementation of xdr_reserve_space().
This commit effectively reverts the optimization.
Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions