]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lockd: add netlink control interface
authorJeff Layton <jlayton@kernel.org>
Wed, 8 Jan 2025 21:00:15 +0000 (16:00 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 10 Mar 2025 13:10:53 +0000 (09:10 -0400)
commit9a28ac1762a7a3a6ab4f82ff655843d6ab3ca62c
treeaa906e29b0639f8d8e17862109f1fa8ca3b6912f
parentfc2a169c56de0860ea7599ea6f67ad5fc451bde1
lockd: add netlink control interface

The legacy rpc.nfsd tool will set the nlm_grace_period if the NFSv4
grace period is set. nfsdctl is missing this functionality, so add a new
netlink control interface for lockd that it can use. For now, it only
allows setting the grace period, and the tcp and udp listener ports.

lockd currently uses module parameters and sysctls for configuration, so
all of its settings are global. With this change, lockd now tracks these
values on a per-net-ns basis. It will only fall back to using the global
values if any of them are 0.

Finally, as a backward compatibility measure, if updating the nlm
settings in the init_net namespace, also update the legacy global
values to match.

Link: https://issues.redhat.com/browse/RHEL-71698
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Documentation/netlink/specs/lockd.yaml [new file with mode: 0644]
fs/lockd/Makefile
fs/lockd/netlink.c [new file with mode: 0644]
fs/lockd/netlink.h [new file with mode: 0644]
fs/lockd/netns.h
fs/lockd/svc.c
include/uapi/linux/lockd_netlink.h [new file with mode: 0644]