]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix callback server shutdown
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 26 Apr 2017 15:55:27 +0000 (11:55 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 27 Apr 2017 22:00:16 +0000 (18:00 -0400)
commit1541def98277a6c82c4620dfaa2037250e505c0b
tree2d4a3fa182fcd7cef1fac00517d797b0ac6fa099
parenta338b2f3a5ac696bd5c1063faa0e5e6c212aa4d7
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: 97188dd0510fd ("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>
fs/nfs/callback.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c