Jeff Layton 0cd14a061e nfsd: fix error handling in __write_ports_addxprt
__write_ports_addxprt calls nfsd_create_serv. That increases the
refcount of nfsd_serv (which is tracked in sv_nrthreads). The service
only decrements the thread count on error, not on success like
__write_ports_addfd does, so using this interface leaves the nfsd
thread count high.

Fix this by having this function call svc_destroy() on error to release
the reference (and possibly to tear down the service) and simply
decrement the refcount without tearing down the service on success.

This makes the sv_threads handling work basically the same in both
__write_ports_addxprt and __write_ports_addfd.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2010-07-23 08:51:24 -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