|
@@ -38,12 +38,27 @@ int xprt_setup_backchannel(struct rpc_xprt *, unsigned int min_reqs);
|
|
|
void xprt_destroy_backchannel(struct rpc_xprt *, int max_reqs);
|
|
|
void bc_release_request(struct rpc_task *);
|
|
|
int bc_send(struct rpc_rqst *req);
|
|
|
+
|
|
|
+/*
|
|
|
+ * Determine if a shared backchannel is in use
|
|
|
+ */
|
|
|
+static inline int svc_is_backchannel(const struct svc_rqst *rqstp)
|
|
|
+{
|
|
|
+ if (rqstp->rq_server->bc_xprt)
|
|
|
+ return 1;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
#else /* CONFIG_NFS_V4_1 */
|
|
|
static inline int xprt_setup_backchannel(struct rpc_xprt *xprt,
|
|
|
unsigned int min_reqs)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
+static inline int svc_is_backchannel(const struct svc_rqst *rqstp)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
#endif /* CONFIG_NFS_V4_1 */
|
|
|
#endif /* _LINUX_SUNRPC_BC_XPRT_H */
|
|
|
|