From: <andros@netapp.com>
To: <trond.myklebust@primarydata.com>
Cc: <anna.schumaker@netapp.com>, <linux-nfs@vger.kernel.org>,
Andy Adamson <andros@netapp.com>
Subject: [PATCH Version 8 06/12] SUNRPC rpc_clnt_xprt_switch_put
Date: Thu, 11 Aug 2016 17:39:28 -0400 [thread overview]
Message-ID: <1470951574-18441-7-git-send-email-andros@netapp.com> (raw)
In-Reply-To: <1470951574-18441-1-git-send-email-andros@netapp.com>
From: Andy Adamson <andros@netapp.com>
Give the NFS layer access to the xprt_switch_put function
Signed-off-by: Andy Adamson <andros@netapp.com>
---
include/linux/sunrpc/clnt.h | 2 ++
net/sunrpc/clnt.c | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index b6810c9..6005095 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -197,5 +197,7 @@ int rpc_clnt_add_xprt(struct rpc_clnt *, struct xprt_create *,
void *data);
const char *rpc_proc_name(const struct rpc_task *task);
+
+void rpc_clnt_xprt_switch_put(struct rpc_clnt *);
#endif /* __KERNEL__ */
#endif /* _LINUX_SUNRPC_CLNT_H */
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 163b8f4..83ab914 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -2672,6 +2672,12 @@ out_put_switch:
}
EXPORT_SYMBOL_GPL(rpc_clnt_add_xprt);
+void rpc_clnt_xprt_switch_put(struct rpc_clnt *clnt)
+{
+ xprt_switch_put(rcu_dereference(clnt->cl_xpi.xpi_xpswitch));
+}
+EXPORT_SYMBOL_GPL(rpc_clnt_xprt_switch_put);
+
#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
static void rpc_show_header(void)
{
--
1.8.3.1
next prev parent reply other threads:[~2016-08-11 21:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 21:39 [PATCH Version 8 00/12] pNFS file layout session trunking andros
2016-08-11 21:39 ` [PATCH Version 8 01/12] NFS setup async exchange_id andros
2016-08-11 21:39 ` [PATCH Version 8 02/12] NFS refactor nfs4_match_clientids andros
2016-08-11 21:39 ` [PATCH Version 8 03/12] NFS refactor nfs4_check_serverowner_major_id andros
2016-08-11 21:39 ` [PATCH Version 8 04/12] NFS detect session trunking andros
2016-08-12 18:57 ` Anna Schumaker
2016-08-11 21:39 ` [PATCH Version 8 05/12] SUNRPC remove rpc_task_release_client from rpc_task_set_client andros
2016-08-11 21:39 ` andros [this message]
2016-08-11 21:39 ` [PATCH Version 8 07/12] SUNRPC rpc_clnt_xprt_switch_add_xprt andros
2016-08-11 21:39 ` [PATCH Version 8 08/12] SUNRPC search xprt switch for sockaddr andros
2016-08-12 20:37 ` Anna Schumaker
2016-08-11 21:39 ` [PATCH Version 8 09/12] SUNRPC: rpc_clnt_add_xprt setup function for NFS layer andros
2016-08-11 21:39 ` [PATCH Version 8 10/12] NFS add xprt switch addrs test to match client andros
2016-08-11 21:39 ` [PATCH Version 8 11/12] NFS test session trunking with exchange id andros
2016-08-12 20:59 ` Anna Schumaker
2016-08-11 21:39 ` [PATCH Version 8 12/12] NFS pnfs data server multipath session trunking andros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470951574-18441-7-git-send-email-andros@netapp.com \
--to=andros@netapp.com \
--cc=anna.schumaker@netapp.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@primarydata.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).