aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2021-06-08 15:59:14 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-07-08 14:03:23 -0400
commit5b9268727f299f87432e8b035e9e8bec8ba13e8d (patch)
treef47840dcd042fc66b0168eb5eb5bd15f2c1f854c /include/linux/sunrpc
parentsunrpc: add xprt id (diff)
downloadlinux-dev-5b9268727f299f87432e8b035e9e8bec8ba13e8d.tar.xz
linux-dev-5b9268727f299f87432e8b035e9e8bec8ba13e8d.zip
sunrpc: add IDs to multipath
This is used to uniquely identify sunrpc multipath objects in /sys. Signed-off-by: Dan Aloni <dan@kernelim.com> Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/xprtmultipath.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprtmultipath.h b/include/linux/sunrpc/xprtmultipath.h
index c6cce3fbf29d..ef95a6f18ccf 100644
--- a/include/linux/sunrpc/xprtmultipath.h
+++ b/include/linux/sunrpc/xprtmultipath.h
@@ -14,6 +14,7 @@ struct rpc_xprt_switch {
spinlock_t xps_lock;
struct kref xps_kref;
+ unsigned int xps_id;
unsigned int xps_nxprts;
unsigned int xps_nactive;
atomic_long_t xps_queuelen;
@@ -71,4 +72,7 @@ extern struct rpc_xprt *xprt_iter_get_next(struct rpc_xprt_iter *xpi);
extern bool rpc_xprt_switch_has_addr(struct rpc_xprt_switch *xps,
const struct sockaddr *sap);
+
+extern void xprt_multipath_cleanup_ids(void);
+
#endif