From: Stanislav Kinsbursky Date: Thu, 6 Dec 2012 11:23:44 +0000 (+0300) Subject: nfsd: simplify service shutdown X-Git-Tag: v3.8-rc1~20^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=541e864f00d0062c98c1e743265b0a60cada3755;p=pandora-kernel.git nfsd: simplify service shutdown Function nfsd_shutdown is called from two places: nfsd_last_thread (when last kernel thread is exiting) and nfsd_svc (in case of kthreads starting error). When calling from nfsd_svc(), we can be sure that per-net resources are allocated, so we don't need to check per-net nfsd_net_up boolean flag. This allows us to remove nfsd_shutdown function at all and move check for per-net nfsd_net_up boolean flag to nfsd_last_thread. Signed-off-by: Stanislav Kinsbursky Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed