Skip to content

Don't touch rpc_xprt directly in lockd

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4NFS: Introduce nlm client setup functionfs/lockd/clntlock.c include/linux/lockd/bind.h+51 -01 reply
2/4NLM: Introduce completion function to match nlmclnt_initfs/lockd/clntlock.c include/linux/lockd/bind.h+13 -03 replies
3/4NFS: Invoke nlmclnt_init during NFS mount processingfs/nfs/client.c include/linux/nfs_fs_sb.h+20 -71 reply
4/4NFS: Use cached nlm_host when calling nlmclnt_proc()fs/lockd/clntproc.c+4 -171 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] Don't touch rpc_xprt directly in lockd

Hi Trond-

Here's a set of patches that remove lockd's dependence on the rpc_xprt.prot field in nlmclnt_proc().

There are a few reasons to remove this dependence, including:

1. The NFS client is now fully in control of selecting which transport protocol is chosen for the sideband NLM protocol (use UDP only if NFS over UDP is specified; otherwise TCP is used).

2. Looking at fields in the rpc_xprt structure in an upper-level protocol implementation is a layering violation.

3. The rpc_xprt.prot field is overloaded -- it's used to control RPC binding as well as which transport protocol is used for sideband protocols.

4. Removing the nlmclnt_lookup_host() call from nlmclnt_proc() eliminates work that is unnecessarily repeated for each NLM request.

This patch series should replace the four I sent you last week for review. Please consider them for 2.6.25.

Signature · 1 line
corporate:    <chuck dot lever at oracle dot com>