diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-04-26 11:55:27 -0400 |
|---|---|---|
| committer | J. Bruce Fields <bfields@redhat.com> | 2017-04-27 18:00:16 -0400 |
| commit | ed6473ddc704a2005b9900ca08e236ebb2d8540a (patch) | |
| tree | 2d4a3fa182fcd7cef1fac00517d797b0ac6fa099 /include/linux/sunrpc | |
| parent | 9e0d87680d689f1758185851c3da6eafb16e71e1 (diff) | |
NFSv4: Fix callback server shutdown
We want to use kthread_stop() in order to ensure the threads are
shut down before we tear down the nfs_callback_info in nfs_callback_down.
Tested-and-reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
Reported-by: Kinglong Mee <kinglongmee@gmail.com>
Fixes: bb6aeba736ba9 ("NFSv4.x: Switch to using svc_set_num_threads()...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/svc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 6ef19cf658b4..94631026f79c 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
| @@ -473,6 +473,7 @@ void svc_pool_map_put(void); | |||
| 473 | struct svc_serv * svc_create_pooled(struct svc_program *, unsigned int, | 473 | struct svc_serv * svc_create_pooled(struct svc_program *, unsigned int, |
| 474 | struct svc_serv_ops *); | 474 | struct svc_serv_ops *); |
| 475 | int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int); | 475 | int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int); |
| 476 | int svc_set_num_threads_sync(struct svc_serv *, struct svc_pool *, int); | ||
| 476 | int svc_pool_stats_open(struct svc_serv *serv, struct file *file); | 477 | int svc_pool_stats_open(struct svc_serv *serv, struct file *file); |
| 477 | void svc_destroy(struct svc_serv *); | 478 | void svc_destroy(struct svc_serv *); |
| 478 | void svc_shutdown_net(struct svc_serv *, struct net *); | 479 | void svc_shutdown_net(struct svc_serv *, struct net *); |
