mbox series

[v4,00/13] create sysfs files for changing IP address

Message ID 20210428213203.40059-1-olga.kornievskaia@gmail.com (mailing list archive)
Headers show
Series create sysfs files for changing IP address | expand

Message

Olga Kornievskaia April 28, 2021, 9:31 p.m. UTC
From: Olga Kornievskaia <kolga@netapp.com>

v4: addresses the latest comments:
--- void sysfs pointers are changed to pointers to structures
--- removed the xprt_get/xprt_switch_get() before calling setup
--- using xprt->address_strings[RPC_DISPLAY_PROTO] instead of creating
adhoc labels for type of transport
--- addressing the switching of xprt->address_strings[RPC_DISPLAY_ADDR]
by using rcu_assign_pointer and freeing the old pointer using call_rcu()


Anna Schumaker (4):
  sunrpc: Prepare xs_connect() for taking NULL tasks
  sunrpc: Create a sunrpc directory under /sys/kernel/
  sunrpc: Create a client/ subdirectory in the sunrpc sysfs
  sunrpc: Create per-rpc_clnt sysfs kobjects

Dan Aloni (2):
  sunrpc: add xprt id
  sunrpc: add IDs to multipath

Olga Kornievskaia (7):
  sunrpc: keep track of the xprt_class in rpc_xprt structure
  sunrpc: add xprt_switch direcotry to sunrpc's sysfs
  sunrpc: add a symlink from rpc-client directory to the xprt_switch
  sunrpc: add add sysfs directory per xprt under each xprt_switch
  sunrpc: add dst_attr attributes to the sysfs xprt directory
  sunrpc: provide transport info in the sysfs directory
  sunrpc: provide multipath info in the sysfs directory

 include/linux/sunrpc/clnt.h          |   2 +
 include/linux/sunrpc/xprt.h          |   6 +
 include/linux/sunrpc/xprtmultipath.h |   6 +
 net/sunrpc/Makefile                  |   2 +-
 net/sunrpc/clnt.c                    |   5 +
 net/sunrpc/sunrpc_syms.c             |  10 +
 net/sunrpc/sysfs.c                   | 472 +++++++++++++++++++++++++++
 net/sunrpc/sysfs.h                   |  41 +++
 net/sunrpc/xprt.c                    |  26 ++
 net/sunrpc/xprtmultipath.c           |  34 ++
 net/sunrpc/xprtrdma/transport.c      |   2 +
 net/sunrpc/xprtsock.c                |  11 +-
 12 files changed, 615 insertions(+), 2 deletions(-)
 create mode 100644 net/sunrpc/sysfs.c
 create mode 100644 net/sunrpc/sysfs.h

Comments

Olga Kornievskaia April 29, 2021, 2:04 p.m. UTC | #1
On Wed, Apr 28, 2021 at 5:32 PM Olga Kornievskaia
<olga.kornievskaia@gmail.com> wrote:
>
> From: Olga Kornievskaia <kolga@netapp.com>
>
> v4: addresses the latest comments:
> --- void sysfs pointers are changed to pointers to structures
> --- removed the xprt_get/xprt_switch_get() before calling setup
> --- using xprt->address_strings[RPC_DISPLAY_PROTO] instead of creating
> adhoc labels for type of transport
> --- addressing the switching of xprt->address_strings[RPC_DISPLAY_ADDR]
> by using rcu_assign_pointer and freeing the old pointer using call_rcu()

Please hold off reviewing this patch series. Further testing revealed
an issue. Thank you.

> Anna Schumaker (4):
>   sunrpc: Prepare xs_connect() for taking NULL tasks
>   sunrpc: Create a sunrpc directory under /sys/kernel/
>   sunrpc: Create a client/ subdirectory in the sunrpc sysfs
>   sunrpc: Create per-rpc_clnt sysfs kobjects
>
> Dan Aloni (2):
>   sunrpc: add xprt id
>   sunrpc: add IDs to multipath
>
> Olga Kornievskaia (7):
>   sunrpc: keep track of the xprt_class in rpc_xprt structure
>   sunrpc: add xprt_switch direcotry to sunrpc's sysfs
>   sunrpc: add a symlink from rpc-client directory to the xprt_switch
>   sunrpc: add add sysfs directory per xprt under each xprt_switch
>   sunrpc: add dst_attr attributes to the sysfs xprt directory
>   sunrpc: provide transport info in the sysfs directory
>   sunrpc: provide multipath info in the sysfs directory
>
>  include/linux/sunrpc/clnt.h          |   2 +
>  include/linux/sunrpc/xprt.h          |   6 +
>  include/linux/sunrpc/xprtmultipath.h |   6 +
>  net/sunrpc/Makefile                  |   2 +-
>  net/sunrpc/clnt.c                    |   5 +
>  net/sunrpc/sunrpc_syms.c             |  10 +
>  net/sunrpc/sysfs.c                   | 472 +++++++++++++++++++++++++++
>  net/sunrpc/sysfs.h                   |  41 +++
>  net/sunrpc/xprt.c                    |  26 ++
>  net/sunrpc/xprtmultipath.c           |  34 ++
>  net/sunrpc/xprtrdma/transport.c      |   2 +
>  net/sunrpc/xprtsock.c                |  11 +-
>  12 files changed, 615 insertions(+), 2 deletions(-)
>  create mode 100644 net/sunrpc/sysfs.c
>  create mode 100644 net/sunrpc/sysfs.h
>
> --
> 2.27.0
>