[pnfs] [PATCH 05/11] NFSv4.1 callback support: Adds new pointers to the rpc_xprt structure.

ricardo.labiaga at netapp.com ricardo.labiaga at netapp.com
Tue Nov 27 23:25:15 EST 2007


Used to setup the backchannel and allocate backchannel requests.

Signed-off-by: Ricardo Labiaga <ricardo.labiaga at netapp.com>
---
 include/linux/sunrpc/xprt.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index edee718..c6f2ae6 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -16,6 +16,10 @@
 #include <linux/sunrpc/sched.h>
 #include <linux/sunrpc/xdr.h>
 #include <linux/sunrpc/msg_prot.h>
+#ifdef CONFIG_NFS_V4_1
+#include <linux/mempool.h>
+#include <linux/slab.h>
+#endif /* CONFIG_NFS_V4_1 */
 
 #ifdef __KERNEL__
 
@@ -170,6 +174,11 @@ struct rpc_xprt {
 	struct rpc_task *	snd_task;	/* Task blocked in send */
 #if defined(CONFIG_NFSD_V4_1)
 	struct svc_sock *	svsk;		/* If this is a callback xprt */
+	struct svc_serv *	serv;		/* The RPC service which will
+						 * process the callback request
+						 */
+	struct kmem_cache *	bc_slab;	/* The slab for the callback request mempool */
+	mempool_t *		bc_mempool;	/* The mempool where callbacks allocate rpc_rqst structs from */
 #endif
 	struct list_head	recv;
 
-- 
1.5.2


More information about the pNFS mailing list