[pnfs] [PATCH 03/11] nfs41: NFSv4.1 callback support
Ricardo Labiaga
ricardo.labiaga at netapp.com
Fri Jan 18 14:21:37 EST 2008
New callback members added to svc_serv. The NFSv4.1 callback service will
sleep on the svc_serv->svc_cb_waitq until new callback requests arrive.
The request will be queued in svc_serv->svc_cb_list. This patch adds this
list, the sleep queue and spinlock to svc_serv.
Signed-off-by: Ricardo Labiaga <ricardo.labiaga at netapp.com>
---
include/linux/sunrpc/svc.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 8531a70..6f30de1 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -81,6 +81,16 @@ struct svc_serv {
* adding threads */
svc_thread_fn sv_function; /* main function for threads */
int sv_kill_signal; /* signal to kill threads */
+#if defined(CONFIG_NFS_V4_1)
+ struct list_head sv_cb_list; /* queue for callback requests
+ * that arrive over the same
+ * connection
+ */
+ spinlock_t sv_cb_lock; /* protects the svc_cb_list */
+ wait_queue_head_t sv_cb_waitq; /* sleep here if there are no
+ * entries in the svc_cb_list
+ */
+#endif /* CONFIG_NFS_V4_1 */
};
/*
--
1.5.3.3
More information about the pNFS
mailing list