Jeff Layton 4ad9a344be nfsd4: fix v4 state shutdown error paths
If someone tries to shut down the laundry_wq while it isn't up it'll
cause an oops.

This can happen because write_ports can create a nfsd_svc before we
really start the nfs server, and we may fail before the server is ever
started.

Also make sure state is shutdown on error paths in nfsd_svc().

Use a common global nfsd_up flag instead of nfs4_init, and create common
helper functions for nfsd start/shutdown, as there will be other work
that we want done only when we the number of nfsd threads transitions
between zero and nonzero.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2010-07-23 08:51:22 -04:00
..
2008-02-01 16:42:05 -05:00
2010-05-04 11:29:05 -04:00
2007-05-09 12:30:54 -07:00
2010-05-13 12:03:11 -04:00
2010-03-06 15:02:08 -05:00
2009-12-20 20:19:51 -08:00
2009-12-15 15:01:46 -05:00
2010-05-13 12:03:11 -04:00