aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/bc_xprt.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/sunrpc/bc_xprt.h b/include/linux/sunrpc/bc_xprt.h
index 6508f0dc0eff..d7152b451e21 100644
--- a/include/linux/sunrpc/bc_xprt.h
+++ b/include/linux/sunrpc/bc_xprt.h
@@ -38,12 +38,27 @@ int xprt_setup_backchannel(struct rpc_xprt *, unsigned int min_reqs);
38void xprt_destroy_backchannel(struct rpc_xprt *, int max_reqs); 38void xprt_destroy_backchannel(struct rpc_xprt *, int max_reqs);
39void bc_release_request(struct rpc_task *); 39void bc_release_request(struct rpc_task *);
40int bc_send(struct rpc_rqst *req); 40int bc_send(struct rpc_rqst *req);
41
42/*
43 * Determine if a shared backchannel is in use
44 */
45static inline int svc_is_backchannel(const struct svc_rqst *rqstp)
46{
47 if (rqstp->rq_server->bc_xprt)
48 return 1;
49 return 0;
50}
41#else /* CONFIG_NFS_V4_1 */ 51#else /* CONFIG_NFS_V4_1 */
42static inline int xprt_setup_backchannel(struct rpc_xprt *xprt, 52static inline int xprt_setup_backchannel(struct rpc_xprt *xprt,
43 unsigned int min_reqs) 53 unsigned int min_reqs)
44{ 54{
45 return 0; 55 return 0;
46} 56}
57
58static inline int svc_is_backchannel(const struct svc_rqst *rqstp)
59{
60 return 0;
61}
47#endif /* CONFIG_NFS_V4_1 */ 62#endif /* CONFIG_NFS_V4_1 */
48#endif /* _LINUX_SUNRPC_BC_XPRT_H */ 63#endif /* _LINUX_SUNRPC_BC_XPRT_H */
49 64