]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: convert nfs4 callback thread to kthread API
authorJeff Layton <jlayton@redhat.com>
Wed, 20 Feb 2008 13:55:30 +0000 (08:55 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 23 Apr 2008 20:13:40 +0000 (16:13 -0400)
commit047d48a209529e9ed54ef0cab79e67af59ec36c8
tree2da3b18f69c7f2d8979a33c666977cd23592e98d
parent25e8317d19d6cee5d6ec83a38aab124342a23c61
NFS: convert nfs4 callback thread to kthread API

There's a general push to convert kernel threads to use the (much
cleaner) kthread API. This patch converts the NFSv4 callback kernel
thread to the kthread API. In addition to being generally cleaner this
also removes the dependency on signals when shutting down the thread.

Note that this patch depends on the recent patches to svc_recv() to
make it check kthread_should_stop() periodically. Those patches are
in Bruce's tree at the moment and are slated for 2.6.26 along with
the lockd conversion, so this conversion is probably also appropriate
for 2.6.26.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfs/callback.c