Skip to content

Convert lockd to use xdrgen for NLMv4

Chuck Lever linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest29 patches 0 repliesNew

Changes in v3 from the cover letter

- Pre-requisite changes have been applied to nfsd-testing

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29Documentation: Add the RPC language description of NLM version 4Documentation/sunrpc/xdr/nlm4.x fs/lockd/Makefile fs/lockd/nlm4xdr_gen.c +2 more+1229 -10 replies
2/29lockd: Use xdrgen XDR functions for the NLMv4 NULL procedurefs/lockd/svc4proc.c+28 -120 replies
3/29lockd: Use xdrgen XDR functions for the NLMv4 TEST procedurefs/lockd/svc4proc.c+174 -120 replies
4/29lockd: Use xdrgen XDR functions for the NLMv4 LOCK procedurefs/lockd/svc4proc.c+115 -120 replies
5/29lockd: Use xdrgen XDR functions for the NLMv4 CANCEL procedurefs/lockd/svc4proc.c+76 -100 replies
6/29lockd: Use xdrgen XDR functions for the NLMv4 UNLOCK procedurefs/lockd/svc4proc.c+74 -100 replies
7/29lockd: Use xdrgen XDR functions for the NLMv4 GRANTED procedurefs/lockd/svc4proc.c+56 -100 replies
8/29lockd: Refactor nlm4svc_callback()fs/lockd/svc4proc.c+62 -180 replies
9/29lockd: Use xdrgen XDR functions for the NLMv4 TEST_MSG procedurefs/lockd/svc4proc.c+60 -540 replies
10/29lockd: Use xdrgen XDR functions for the NLMv4 LOCK_MSG procedurefs/lockd/svc4proc.c+61 -160 replies
11/29lockd: Use xdrgen XDR functions for the NLMv4 CANCEL_MSG procedurefs/lockd/svc4proc.c+65 -480 replies
12/29lockd: Use xdrgen XDR functions for the NLMv4 UNLOCK_MSG procedurefs/lockd/svc4proc.c+64 -510 replies
13/29lockd: Use xdrgen XDR functions for the NLMv4 GRANTED_MSG procedurefs/lockd/svc4proc.c+45 -330 replies
14/29lockd: Use xdrgen XDR functions for the NLMv4 TEST_RES procedurefs/lockd/svc4proc.c+9 -90 replies
15/29lockd: Use xdrgen XDR functions for the NLMv4 LOCK_RES procedurefs/lockd/svc4proc.c+9 -90 replies
16/29lockd: Use xdrgen XDR functions for the NLMv4 CANCEL_RES procedurefs/lockd/svc4proc.c+9 -90 replies
17/29lockd: Use xdrgen XDR functions for the NLMv4 UNLOCK_RES procedurefs/lockd/svc4proc.c+9 -90 replies
18/29lockd: Use xdrgen XDR functions for the NLMv4 GRANTED_RES procedurefs/lockd/svc4proc.c+34 -260 replies
19/29lockd: Use xdrgen XDR functions for the NLMv4 SM_NOTIFY procedurefs/lockd/svc4proc.c+55 -310 replies
20/29lockd: Convert server-side undefined procedures to xdrgenfs/lockd/svc4proc.c+36 -300 replies
21/29lockd: Hoist file_lock init out of nlm4svc_decode_shareargs()fs/lockd/svc4proc.c fs/lockd/xdr4.c+12 -70 replies
22/29lockd: Prepare share helpers for xdrgen conversionfs/lockd/share.h fs/lockd/svc4proc.c fs/lockd/svcproc.c +1 more+36 -210 replies
23/29lockd: Use xdrgen XDR functions for the NLMv4 SHARE procedurefs/lockd/svc4proc.c+81 -370 replies
24/29lockd: Use xdrgen XDR functions for the NLMv4 UNSHARE procedurefs/lockd/svc4proc.c+62 -360 replies
25/29lockd: Use xdrgen XDR functions for the NLMv4 NM_LOCK procedurefs/lockd/svc4proc.c+44 -570 replies
26/29lockd: Use xdrgen XDR functions for the NLMv4 FREE_ALL procedurefs/lockd/svc4proc.c+33 -920 replies
27/29lockd: Add LOCKD_SHARE_SVID constant for DOS sharing modefs/lockd/share.h fs/lockd/svc4proc.c fs/lockd/xdr.c+7 -30 replies
28/29lockd: Remove C macros that are no longer usedfs/lockd/svc4proc.c+1 -100 replies
29/29lockd: Remove dead code from fs/lockd/xdr4.cfs/lockd/Makefile fs/lockd/clnt4xdr.c fs/lockd/lockd.h +3 more+8 -3710 replies

Reviews trailers per patch

All 29 patches have a Reviewed-by or Acked-by.

PatchJeff Layton
1/29R-b
2/29R-b
3/29R-b
4/29R-b
5/29R-b
6/29R-b
7/29R-b
8/29R-b
9/29R-b
10/29R-b
11/29R-b
12/29R-b
13/29R-b
14/29R-b
15/29R-b
16/29R-b
17/29R-b
18/29R-b
19/29R-b
20/29R-b
21/29R-b
22/29R-b
23/29R-b
24/29R-b
25/29R-b
26/29R-b
27/29R-b
28/29R-b
29/29R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/29] Convert lockd to use xdrgen for NLMv4

From: Chuck Lever <[email protected]>

This series modernizes the NLMv4 XDR layer using XDR generated by the xdrgen tool.

Based on the public nfsd-testing branch.

---

Changes since v2:
- Pre-requisite changes have been applied to nfsd-testing

Chuck Lever (29):
Documentation: Add the RPC language description of NLM version 4
lockd: Use xdrgen XDR functions for the NLMv4 NULL procedure
lockd: Use xdrgen XDR functions for the NLMv4 TEST procedure
lockd: Use xdrgen XDR functions for the NLMv4 LOCK procedure
lockd: Use xdrgen XDR functions for the NLMv4 CANCEL procedure
lockd: Use xdrgen XDR functions for the NLMv4 UNLOCK procedure
lockd: Use xdrgen XDR functions for the NLMv4 GRANTED procedure
lockd: Refactor nlm4svc_callback()
lockd: Use xdrgen XDR functions for the NLMv4 TEST_MSG procedure
lockd: Use xdrgen XDR functions for the NLMv4 LOCK_MSG procedure
lockd: Use xdrgen XDR functions for the NLMv4 CANCEL_MSG procedure
lockd: Use xdrgen XDR functions for the NLMv4 UNLOCK_MSG procedure
lockd: Use xdrgen XDR functions for the NLMv4 GRANTED_MSG procedure
lockd: Use xdrgen XDR functions for the NLMv4 TEST_RES procedure
lockd: Use xdrgen XDR functions for the NLMv4 LOCK_RES procedure
lockd: Use xdrgen XDR functions for the NLMv4 CANCEL_RES procedure
lockd: Use xdrgen XDR functions for the NLMv4 UNLOCK_RES procedure
lockd: Use xdrgen XDR functions for the NLMv4 GRANTED_RES procedure
lockd: Use xdrgen XDR functions for the NLMv4 SM_NOTIFY procedure
lockd: Convert server-side undefined procedures to xdrgen
lockd: Hoist file_lock init out of nlm4svc_decode_shareargs()
lockd: Prepare share helpers for xdrgen conversion
lockd: Use xdrgen XDR functions for the NLMv4 SHARE procedure
lockd: Use xdrgen XDR functions for the NLMv4 UNSHARE procedure
lockd: Use xdrgen XDR functions for the NLMv4 NM_LOCK procedure
lockd: Use xdrgen XDR functions for the NLMv4 FREE_ALL procedure
lockd: Add LOCKD_SHARE_SVID constant for DOS sharing mode
lockd: Remove C macros that are no longer used
lockd: Remove dead code from fs/lockd/xdr4.c

 Documentation/sunrpc/xdr/nlm4.x    |  211 ++++
 fs/lockd/Makefile                  |   30 +-
 fs/lockd/clnt4xdr.c                |    2 -
 fs/lockd/lockd.h                   |    7 +
 fs/lockd/nlm4xdr_gen.c             |  724 ++++++++++++
 fs/lockd/nlm4xdr_gen.h             |   32 +
 fs/lockd/share.h                   |   11 +-
 fs/lockd/svc4proc.c                | 1773 +++++++++++++++++++---------
 fs/lockd/svcproc.c                 |    7 +-
 fs/lockd/svcshare.c                |   35 +-
 fs/lockd/xdr.c                     |    3 +-
 fs/lockd/xdr4.c                    |  337 ------
 fs/lockd/xdr4.h                    |   33 -
 include/linux/sunrpc/xdrgen/nlm4.h |  233 ++++
 14 files changed, 2474 insertions(+), 964 deletions(-)
 create mode 100644 Documentation/sunrpc/xdr/nlm4.x
 create mode 100644 fs/lockd/nlm4xdr_gen.c
 create mode 100644 fs/lockd/nlm4xdr_gen.h
 delete mode 100644 fs/lockd/xdr4.c
 delete mode 100644 fs/lockd/xdr4.h
 create mode 100644 include/linux/sunrpc/xdrgen/nlm4.h
Signature · 1 line
2.53.0