diff options
Diffstat (limited to 'include/linux/sunrpc/svc.h')
| -rw-r--r-- | include/linux/sunrpc/svc.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 4b54c5fdcfd..dc69068d94c 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | /* | 22 | /* |
| 23 | * This is the RPC server thread function prototype | 23 | * This is the RPC server thread function prototype |
| 24 | */ | 24 | */ |
| 25 | typedef void (*svc_thread_fn)(struct svc_rqst *); | 25 | typedef int (*svc_thread_fn)(void *); |
| 26 | 26 | ||
| 27 | /* | 27 | /* |
| 28 | * | 28 | * |
| @@ -80,7 +80,6 @@ struct svc_serv { | |||
| 80 | struct module * sv_module; /* optional module to count when | 80 | struct module * sv_module; /* optional module to count when |
| 81 | * adding threads */ | 81 | * adding threads */ |
| 82 | svc_thread_fn sv_function; /* main function for threads */ | 82 | svc_thread_fn sv_function; /* main function for threads */ |
| 83 | int sv_kill_signal; /* signal to kill threads */ | ||
| 84 | }; | 83 | }; |
| 85 | 84 | ||
| 86 | /* | 85 | /* |
| @@ -388,8 +387,8 @@ struct svc_rqst *svc_prepare_thread(struct svc_serv *serv, | |||
| 388 | struct svc_pool *pool); | 387 | struct svc_pool *pool); |
| 389 | void svc_exit_thread(struct svc_rqst *); | 388 | void svc_exit_thread(struct svc_rqst *); |
| 390 | struct svc_serv * svc_create_pooled(struct svc_program *, unsigned int, | 389 | struct svc_serv * svc_create_pooled(struct svc_program *, unsigned int, |
| 391 | void (*shutdown)(struct svc_serv*), | 390 | void (*shutdown)(struct svc_serv*), svc_thread_fn, |
| 392 | svc_thread_fn, int sig, struct module *); | 391 | struct module *); |
| 393 | int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int); | 392 | int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int); |
| 394 | void svc_destroy(struct svc_serv *); | 393 | void svc_destroy(struct svc_serv *); |
| 395 | int svc_process(struct svc_rqst *); | 394 | int svc_process(struct svc_rqst *); |
