From: Jeff Layton Date: Thu, 7 Feb 2008 21:34:55 +0000 (-0500) Subject: NLM: Convert lockd to use kthreads X-Git-Tag: v2.6.26-rc1~1083^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d751a7cd0695554498f25d3026ca6710dbb3698f;p=pandora-kernel.git NLM: Convert lockd to use kthreads Have lockd_up start lockd using kthread_run. With this change, lockd_down now blocks until lockd actually exits, so there's no longer need for the waitqueue code at the end of lockd_down. This also means that only one lockd can be running at a time which simplifies the code within lockd's main loop. This also adds a check for kthread_should_stop in the main loop of nlmsvc_retry_blocked and after that function returns. There's no sense continuing to retry blocks if lockd is coming down anyway. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed