diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sunrpc/svc.h | 4 | ||||
| -rw-r--r-- | include/trace/events/sunrpc.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 513957eba0a5..6f22cfeef5e3 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
| @@ -45,7 +45,6 @@ struct svc_pool_stats { | |||
| 45 | struct svc_pool { | 45 | struct svc_pool { |
| 46 | unsigned int sp_id; /* pool id; also node id on NUMA */ | 46 | unsigned int sp_id; /* pool id; also node id on NUMA */ |
| 47 | spinlock_t sp_lock; /* protects all fields */ | 47 | spinlock_t sp_lock; /* protects all fields */ |
| 48 | struct list_head sp_threads; /* idle server threads */ | ||
| 49 | struct list_head sp_sockets; /* pending sockets */ | 48 | struct list_head sp_sockets; /* pending sockets */ |
| 50 | unsigned int sp_nrthreads; /* # of threads in pool */ | 49 | unsigned int sp_nrthreads; /* # of threads in pool */ |
| 51 | struct list_head sp_all_threads; /* all server threads */ | 50 | struct list_head sp_all_threads; /* all server threads */ |
| @@ -221,7 +220,6 @@ static inline void svc_putu32(struct kvec *iov, __be32 val) | |||
| 221 | * processed. | 220 | * processed. |
| 222 | */ | 221 | */ |
| 223 | struct svc_rqst { | 222 | struct svc_rqst { |
| 224 | struct list_head rq_list; /* idle list */ | ||
| 225 | struct list_head rq_all; /* all threads list */ | 223 | struct list_head rq_all; /* all threads list */ |
| 226 | struct rcu_head rq_rcu_head; /* for RCU deferred kfree */ | 224 | struct rcu_head rq_rcu_head; /* for RCU deferred kfree */ |
| 227 | struct svc_xprt * rq_xprt; /* transport ptr */ | 225 | struct svc_xprt * rq_xprt; /* transport ptr */ |
| @@ -264,6 +262,7 @@ struct svc_rqst { | |||
| 264 | * to prevent encrypting page | 262 | * to prevent encrypting page |
| 265 | * cache pages */ | 263 | * cache pages */ |
| 266 | #define RQ_VICTIM (5) /* about to be shut down */ | 264 | #define RQ_VICTIM (5) /* about to be shut down */ |
| 265 | #define RQ_BUSY (6) /* request is busy */ | ||
| 267 | unsigned long rq_flags; /* flags field */ | 266 | unsigned long rq_flags; /* flags field */ |
| 268 | 267 | ||
| 269 | void * rq_argp; /* decoded arguments */ | 268 | void * rq_argp; /* decoded arguments */ |
| @@ -285,6 +284,7 @@ struct svc_rqst { | |||
| 285 | struct auth_domain * rq_gssclient; /* "gss/"-style peer info */ | 284 | struct auth_domain * rq_gssclient; /* "gss/"-style peer info */ |
| 286 | struct svc_cacherep * rq_cacherep; /* cache info */ | 285 | struct svc_cacherep * rq_cacherep; /* cache info */ |
| 287 | struct task_struct *rq_task; /* service thread */ | 286 | struct task_struct *rq_task; /* service thread */ |
| 287 | spinlock_t rq_lock; /* per-request lock */ | ||
| 288 | }; | 288 | }; |
| 289 | 289 | ||
| 290 | #define SVC_NET(svc_rqst) (svc_rqst->rq_xprt->xpt_net) | 290 | #define SVC_NET(svc_rqst) (svc_rqst->rq_xprt->xpt_net) |
diff --git a/include/trace/events/sunrpc.h b/include/trace/events/sunrpc.h index 08a5fed50f34..ee4438a63a48 100644 --- a/include/trace/events/sunrpc.h +++ b/include/trace/events/sunrpc.h | |||
| @@ -419,7 +419,8 @@ TRACE_EVENT(xs_tcp_data_recv, | |||
| 419 | { (1UL << RQ_USEDEFERRAL), "RQ_USEDEFERRAL"}, \ | 419 | { (1UL << RQ_USEDEFERRAL), "RQ_USEDEFERRAL"}, \ |
| 420 | { (1UL << RQ_DROPME), "RQ_DROPME"}, \ | 420 | { (1UL << RQ_DROPME), "RQ_DROPME"}, \ |
| 421 | { (1UL << RQ_SPLICE_OK), "RQ_SPLICE_OK"}, \ | 421 | { (1UL << RQ_SPLICE_OK), "RQ_SPLICE_OK"}, \ |
| 422 | { (1UL << RQ_VICTIM), "RQ_VICTIM"}) | 422 | { (1UL << RQ_VICTIM), "RQ_VICTIM"}, \ |
| 423 | { (1UL << RQ_BUSY), "RQ_BUSY"}) | ||
| 423 | 424 | ||
| 424 | TRACE_EVENT(svc_recv, | 425 | TRACE_EVENT(svc_recv, |
| 425 | TP_PROTO(struct svc_rqst *rqst, int status), | 426 | TP_PROTO(struct svc_rqst *rqst, int status), |
