On Sat, Dec 4, 2010 at 5:47 PM, Mark Kettenis <mark.kette...@xs4all.nl> wrote: >> Date: Sat, 4 Dec 2010 17:26:02 -0500 >> From: Ted Unangst <ted.unan...@gmail.com> >> >> > That works just fine. Everything should be put back into the pool >> > when nfsd gets killed, so apart from some counters, the pool should be >> > completely virgin and ready for reuse. >> >> Are you sure? It's going to be inserted back into the list of all >> pools, but it's already on the list. > > I think you're confused here. That is *exactly* the problem the > current code has, and what my diff fixes.
It's not possible for nfsrv_init to be called a third time? > >> If you want to kill the pool, you should call pool_destroy. > > I suppose I we could pool_destroy() immediately before the pool_init > if 'terminating' is true, but why bother?