]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: take a xprt offline using sysfs
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 24 Jun 2021 03:28:50 +0000 (23:28 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 8 Jul 2021 18:03:24 +0000 (14:03 -0400)
commit3e769b79ea0d464ce697c30e6e9dbd953bad3f7b
tree1a71de43011ed7c434117cfe94676739a880c3f0
parentbabf491ed14730560c7fd2861c40868fa5ac1777
SUNRPC: take a xprt offline using sysfs

Using sysfs's xprt_state attribute, mark a particular transport offline.
It will not be picked during the round-robin selection. It's not allowed
to take the main (1st created transport associated with the rpc_client)
offline. Also bring a transport back online via sysfs by writing "online"
and that would allow for this transport to be picked during the round-
robin selection.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/xprt.h
net/sunrpc/sysfs.c
net/sunrpc/sysfs.h
net/sunrpc/xprtmultipath.c