diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2026-05-12 21:13:55 +0300 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-06-09 23:32:59 +0300 |
| commit | ba4c62bb35ad5705a2a01d66cb5b6142bff1854e (patch) | |
| tree | 5c0c5e8ef4755bd72c78e243d1a82812c7ff32ad /include/linux/timerqueue.h | |
| parent | 596401c14c7ed86c9e8f4224950f22b6e2cc0a09 (diff) | |
| download | linux-ba4c62bb35ad5705a2a01d66cb5b6142bff1854e.tar.xz | |
lockd: Use xdrgen XDR functions for the NLMv3 TEST_MSG procedure
Continue the xdrgen migration by converting NLMv3 TEST_MSG, the
async counterpart to TEST that clients use to check lock
availability without blocking. The procedure now uses
nlm_svc_decode_nlm_testargs and nlm_svc_encode_void, generated
from the NLM version 3 protocol specification. The procedure
handler reaches the xdrgen types through the
nlm_testargs_wrapper structure, which bridges between generated
code and the legacy lockd_lock representation.
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 not
needed. The lock member of the wrapper is populated explicitly
in nlm3svc_lookup_file() rather than relying on
zero-initialization.
The NLM async callback mechanism uses client-side functions
which continue to take legacy results like struct lockd_res,
preventing TEST and TEST_MSG from sharing code for now.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
