aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-11-21 14:19:28 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-12-09 11:22:22 -0500
commit812443865c5fc255363d4a684a62c086af1addca (patch)
treeaed67f73c91814fc0ee5e59d53b8c97a28148074 /include/linux/sunrpc
parent0b5707e4524eb817b7b02863887820d27b56910a (diff)
sunrpc: add a rcu_head to svc_rqst and use kfree_rcu to free it
...also make the manipulation of sp_all_threads list use RCU-friendly functions. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Tested-by: Chris Worley <chris.worley@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/svc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 5f0ab39bf7c3..7f80a99c59e4 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -223,6 +223,7 @@ static inline void svc_putu32(struct kvec *iov, __be32 val)
223struct svc_rqst { 223struct svc_rqst {
224 struct list_head rq_list; /* idle list */ 224 struct list_head rq_list; /* idle list */
225 struct list_head rq_all; /* all threads list */ 225 struct list_head rq_all; /* all threads list */
226 struct rcu_head rq_rcu_head; /* for RCU deferred kfree */
226 struct svc_xprt * rq_xprt; /* transport ptr */ 227 struct svc_xprt * rq_xprt; /* transport ptr */
227 228
228 struct sockaddr_storage rq_addr; /* peer address */ 229 struct sockaddr_storage rq_addr; /* peer address */
@@ -262,6 +263,7 @@ struct svc_rqst {
262#define RQ_SPLICE_OK (4) /* turned off in gss privacy 263#define RQ_SPLICE_OK (4) /* turned off in gss privacy
263 * to prevent encrypting page 264 * to prevent encrypting page
264 * cache pages */ 265 * cache pages */
266#define RQ_VICTIM (5) /* about to be shut down */
265 unsigned long rq_flags; /* flags field */ 267 unsigned long rq_flags; /* flags field */
266 268
267 void * rq_argp; /* decoded arguments */ 269 void * rq_argp; /* decoded arguments */