]> err.no Git - linux-2.6/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)
commita277e33cbe3fdfb9a77b448ea3043be22f000dfd
tree2da3b18f69c7f2d8979a33c666977cd23592e98d
parent3ba1514815817f93a4f09615726dd4bcd0ddbbc9
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