[PATCH 0/5] Convert knfsd to kthread API and fix startup/shutdown races (try #4)

Jeff Layton jlayton at redhat.com
Tue Jun 10 08:40:34 EDT 2008


This patchset is the fourth attempt to change nfsd to the kthread API.
The main changes from the last patchset deal with module reference
counts. Earlier patchsets either had ignored the module reference count
for nfsd, or had attempted to do the module refcounting in the nfsd
module itself.

Ignoring them won't work. nfsd is started from userspace, so we need to
have the nfsd threads keep an explicit reference to the module. Also, we
need to have the function that actually starts each thread take the
reference. Trying to do it within the context of the thread itself would
be racy.

I think this should fix the last of the issues identified, but comments
and suggestions are welcome.

Signed-off-by: Jeff Layton <jlayton at redhat.com>



More information about the NFSv4 mailing list