]> git.ipfire.org Git - thirdparty/linux.git/commit
lockd: Use xdrgen XDR functions for the NLMv4 LOCK_RES procedure
authorChuck Lever <chuck.lever@oracle.com>
Tue, 17 Feb 2026 22:07:07 +0000 (17:07 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commit50976ab9792af23f9a8672e415ca0d0bc93bd9d3
tree60504b5613cdf5ff9cee1616c4bf012a8c92f7b0
parent4764124811717650ecdef7a121768522683cafd7
lockd: Use xdrgen XDR functions for the NLMv4 LOCK_RES procedure

Convert the LOCK_RES procedure to use xdrgen functions
nlm4_svc_decode_nlm4_res and nlm4_svc_encode_void.
LOCK_RES is a callback procedure where the client sends
lock results back to the server after an async LOCK
request.

The pc_argzero field is set to zero because xdrgen decoders
reliably initialize all arguments, making the early
defensive memset unnecessary.

This change also corrects the pc_xdrressize field, which
previously contained a placeholder value.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svc4proc.c