diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-03-29 19:58:22 -0500 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-03-29 19:58:22 -0500 |
| commit | 79072f38909e3d9883317238887460c39ddcc4cb (patch) | |
| tree | 28369f5a844535ff836565eefd62695b0e890fa3 /include/linux/sunrpc/sched.h | |
| parent | 200d5a7684cc49ef4be40e832daf3f217e70dfbb (diff) | |
| parent | 55d8ca4f8094246da6e71889a4e04bfafaa78b10 (diff) | |
Merge branch 'upstream'
Diffstat (limited to 'include/linux/sunrpc/sched.h')
| -rw-r--r-- | include/linux/sunrpc/sched.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index 8b25629accd8..82a91bb22362 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
| @@ -86,6 +86,12 @@ struct rpc_task { | |||
| 86 | struct work_struct tk_work; /* Async task work queue */ | 86 | struct work_struct tk_work; /* Async task work queue */ |
| 87 | struct rpc_wait tk_wait; /* RPC wait */ | 87 | struct rpc_wait tk_wait; /* RPC wait */ |
| 88 | } u; | 88 | } u; |
| 89 | |||
| 90 | unsigned short tk_timeouts; /* maj timeouts */ | ||
| 91 | size_t tk_bytes_sent; /* total bytes sent */ | ||
| 92 | unsigned long tk_start; /* RPC task init timestamp */ | ||
| 93 | long tk_rtt; /* round-trip time (jiffies) */ | ||
| 94 | |||
| 89 | #ifdef RPC_DEBUG | 95 | #ifdef RPC_DEBUG |
| 90 | unsigned short tk_pid; /* debugging aid */ | 96 | unsigned short tk_pid; /* debugging aid */ |
| 91 | #endif | 97 | #endif |
| @@ -203,6 +209,7 @@ struct rpc_wait_queue { | |||
| 203 | unsigned char priority; /* current priority */ | 209 | unsigned char priority; /* current priority */ |
| 204 | unsigned char count; /* # task groups remaining serviced so far */ | 210 | unsigned char count; /* # task groups remaining serviced so far */ |
| 205 | unsigned char nr; /* # tasks remaining for cookie */ | 211 | unsigned char nr; /* # tasks remaining for cookie */ |
| 212 | unsigned short qlen; /* total # tasks waiting in queue */ | ||
| 206 | #ifdef RPC_DEBUG | 213 | #ifdef RPC_DEBUG |
| 207 | const char * name; | 214 | const char * name; |
| 208 | #endif | 215 | #endif |
| @@ -269,13 +276,13 @@ void * rpc_malloc(struct rpc_task *, size_t); | |||
| 269 | void rpc_free(struct rpc_task *); | 276 | void rpc_free(struct rpc_task *); |
| 270 | int rpciod_up(void); | 277 | int rpciod_up(void); |
| 271 | void rpciod_down(void); | 278 | void rpciod_down(void); |
| 272 | void rpciod_wake_up(void); | ||
| 273 | int __rpc_wait_for_completion_task(struct rpc_task *task, int (*)(void *)); | 279 | int __rpc_wait_for_completion_task(struct rpc_task *task, int (*)(void *)); |
| 274 | #ifdef RPC_DEBUG | 280 | #ifdef RPC_DEBUG |
| 275 | void rpc_show_tasks(void); | 281 | void rpc_show_tasks(void); |
| 276 | #endif | 282 | #endif |
| 277 | int rpc_init_mempool(void); | 283 | int rpc_init_mempool(void); |
| 278 | void rpc_destroy_mempool(void); | 284 | void rpc_destroy_mempool(void); |
| 285 | extern struct workqueue_struct *rpciod_workqueue; | ||
| 279 | 286 | ||
| 280 | static inline void rpc_exit(struct rpc_task *task, int status) | 287 | static inline void rpc_exit(struct rpc_task *task, int status) |
| 281 | { | 288 | { |
