diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2026-05-12 21:14:05 +0300 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-06-09 23:32:59 +0300 |
| commit | 371275eeb032ac4122a0847c97ee5c0f36ae15c2 (patch) | |
| tree | 2a4bedebb8689106ee03d52373eee7dee1f03d1f /include/linux/timerqueue.h | |
| parent | e0018ec659f559749bb3ded7acb6bb03447bc416 (diff) | |
| download | linux-371275eeb032ac4122a0847c97ee5c0f36ae15c2.tar.xz | |
lockd: Use xdrgen XDR functions for the NLMv3 SM_NOTIFY procedure
Continue the xdrgen migration by converting NLMv3 SM_NOTIFY,
a private callback from statd to notify lockd when a remote
host has rebooted. The procedure now uses
nlm_svc_decode_nlm_notifyargs and nlm_svc_encode_void,
generated from the NLM version 3 protocol specification.
A new struct nlm_notifyargs_wrapper bridges between the
xdrgen-generated nlm_notifyargs and the lockd_reboot
structure expected by nlm_host_rebooted(). The wrapper
contains both the xdrgen-decoded arguments and a reboot
field for the existing API.
Setting pc_argzero to zero is safe because the generated
decoder fills argp->xdrgen 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 SM_NOTIFY
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/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
