diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2026-05-12 21:14:00 +0300 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-06-09 23:32:59 +0300 |
| commit | 386bed664e0d20e60908bc51d33994bf6c1a05a0 (patch) | |
| tree | 544f68a503978024a13d66fabe163140bd0428b1 /include/linux | |
| parent | 6c534ad999b6696bca55ded82bb7645fe6c5979e (diff) | |
| download | linux-386bed664e0d20e60908bc51d33994bf6c1a05a0.tar.xz | |
lockd: Use xdrgen XDR functions for the NLMv3 TEST_RES procedure
Continue the xdrgen migration by converting NLMv3 TEST_RES,
the callback that a remote NLM uses to return async TEST
results to this lockd. The procedure now uses
nlm_svc_decode_nlm_testres and nlm_svc_encode_void, generated
from the NLM version 3 protocol specification.
Setting pc_argzero to zero is safe because the generated
decoder fills the argp->xdrgen subfields before the procedure
runs, so the zeroing memset performed by the dispatch layer
is no longer needed.
Setting pc_xdrressize to XDR_void reflects that TEST_RES, as
a callback, returns no data; the previous value of St
over-reserved a status word in the reply buffer.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
