mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] lockd: allow setting ports without setting gracetime
@ 2026-09-23 15:30 Jeff Layton
  2026-09-23 15:30 ` [PATCH v2 1/2] lockd: allow SERVER_SET without a gracetime attribute Jeff Layton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jeff Layton @ 2026-09-23 15:30 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker, Chuck Lever, NeilBrown,
	Olga Kornievskaia, Dai Ngo, Tom Talpey, Shuah Khan
  Cc: Scott Mayhew, linux-nfs, linux-kernel, linux-kselftest, Jeff Layton

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.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
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/20260923-nfsd-testing-v1-0-a793f54a4dd1@kernel.org

---
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,
-- 
Jeff Layton <jlayton@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-23 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 15:30 [PATCH v2 0/2] lockd: allow setting ports without setting gracetime Jeff Layton
2026-09-23 15:30 ` [PATCH v2 1/2] lockd: allow SERVER_SET without a gracetime attribute Jeff Layton
2026-09-23 15:30 ` [PATCH v2 2/2] selftests/nfsd: add lockd netlink configuration tests Jeff Layton
2026-09-23 18:25 ` [PATCH v2 0/2] lockd: allow setting ports without setting gracetime Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®