Skip to content

lockd: allow setting ports without setting gracetime

Jeff Layton linux-kselftest linux-nfs lkml 2 versions In review

Get series with b4
b4 am [email protected] change-id 20260922-nfsd-testing-00c12335047d

Versions newest first

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- selftests: split put_ports() into put_tcp_port()/put_udp_port() helpers
- selftests: attributes_are_set_independently now also covers a UDP-only SERVER_SET
- selftests: empty_set_is_a_noop and settings_are_per_netns now set and check gracetime too
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lockd: allow SERVER_SET without a gracetime attributefs/lockd/svc.c+22 -280 replies
2/2selftests/nfsd: add lockd netlink configuration teststools/testing/selftests/nfsd/.gitignore tools/testing/selftests/nfsd/Makefile tools/testing/selftests/nfsd/nfsd_lockd_netlink.c +1 more+345 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] lockd: allow setting ports without setting gracetime

This version fixes some selftest coverage gaps that Sashiko pointed out. The actual bugfix is unchanged.

This patchset fixes a rather silly bug that Scott pointed out to me in a meeting recently. You currently can't set the ports in lockd via the netlink interface unless you also set the gracetime. This patch makes them all properly optional.

---
Changes in v2:
- selftests: split put_ports() into put_tcp_port()/put_udp_port() helpers
- selftests: attributes_are_set_independently now also covers a UDP-only SERVER_SET
- selftests: empty_set_is_a_noop and settings_are_per_netns now set and check gracetime too
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Jeff Layton (2):
lockd: allow SERVER_SET without a gracetime attribute selftests/nfsd: add lockd netlink configuration tests

 fs/lockd/svc.c                                    |  50 ++--
 tools/testing/selftests/nfsd/.gitignore           |   1 +
 tools/testing/selftests/nfsd/Makefile             |   1 +
 tools/testing/selftests/nfsd/nfsd_lockd_netlink.c | 268 ++++++++++++++++++++++
 tools/testing/selftests/nfsd/nfsd_netlink.h       |  90 ++++++--
 5 files changed, 367 insertions(+), 43 deletions(-)

---
base-commit: cab95e6be3ba82bcf4c8be27c2eb20e55238aa41
change-id: 20260922-nfsd-testing-00c12335047d

Best regards,

Signature · 1 line
Jeff Layton <[email protected]>