Skip to content

sysfs files for multipath transport control

Dan Aloni linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8sunrpc: rename 'net' to 'client'net/sunrpc/clnt.c net/sunrpc/sysfs.c net/sunrpc/sysfs.h+17 -172 replies
2/8sunrpc: add xprt idinclude/linux/sunrpc/xprt.h net/sunrpc/sunrpc_syms.c net/sunrpc/xprt.c+29 -00 replies
3/8sunrpc: add a directory per sunrpc xprtinclude/linux/sunrpc/xprt.h net/sunrpc/sysfs.c net/sunrpc/sysfs.h +1 more+139 -52 replies
4/8sunrpc: have client directory a symlink to the root transportnet/sunrpc/sysfs.c+6 -380 replies
5/8sunrpc: add IDs to multipathinclude/linux/sunrpc/xprtmultipath.h net/sunrpc/sunrpc_syms.c net/sunrpc/xprtmultipath.c+32 -00 replies
6/8sunrpc: add multipath directory and symlink from clientinclude/linux/sunrpc/xprtmultipath.h net/sunrpc/sysfs.c net/sunrpc/sysfs.h +1 more+142 -00 replies
7/8sunrpc: change rpc_clnt_add_xprt() to rpc_add_xprt()fs/nfs/pnfs_nfs.c include/linux/sunrpc/clnt.h net/sunrpc/clnt.c+31 -240 replies
8/8sunrpc: introduce an 'add' node to 'multipath' sysfs directorynet/sunrpc/sysfs.c+101 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/8] sysfs files for multipath transport control

Hi Anna,

This patchset builds ontop v2 of your 'sysfs files for changing IP' changeset.

- The patchset adds two more sysfs objects, for one for transport and another for multipath.
- Also, net renamed to client, and client now has symlink to its principal transport. A client also has a symlink to its multipath object.
- The transport interface lets you change dstaddr of individual transports, when nconnect is used (or if it wasn't used and these were added with the new interface).
- The interface to add a transport is using a single string written to 'add', for example:

       echo 'dstaddr 192.168.40.8 kind rdma' \
               > /sys/kernel/sunrpc/client/0/multipath/add

These changes are independent of the method used to obtain a sunrpc ID for a mountpoint. For that I've sent a concept patch showing an fspick-based
implementation: https://marc.info/?l=linux-nfs&m=161332454821849&w=4

Thanks

Dan Aloni (8):
sunrpc: rename 'net' to 'client'
sunrpc: add xprt id
sunrpc: add a directory per sunrpc xprt
sunrpc: have client directory a symlink to the root transport
sunrpc: add IDs to multipath
sunrpc: add multipath directory and symlink from client
sunrpc: change rpc_clnt_add_xprt() to rpc_add_xprt()
sunrpc: introduce an 'add' node to 'multipath' sysfs directory

 fs/nfs/pnfs_nfs.c                    |  12 +-
 include/linux/sunrpc/clnt.h          |  12 +-
 include/linux/sunrpc/xprt.h          |   3 +
 include/linux/sunrpc/xprtmultipath.h |   6 +
 net/sunrpc/clnt.c                    |  39 +--
 net/sunrpc/sunrpc_syms.c             |   2 +
 net/sunrpc/sysfs.c                   | 403 +++++++++++++++++++++++----
 net/sunrpc/sysfs.h                   |  21 +-
 net/sunrpc/xprt.c                    |  29 ++
 net/sunrpc/xprtmultipath.c           |  37 +++
 10 files changed, 487 insertions(+), 77 deletions(-)
Signature · 1 line
2.26.2