diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2017-02-14 17:49:08 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2017-02-14 17:49:08 +0000 |
commit | 90f90687b3c354a3530e251e6a9192b404b379ae (patch) | |
tree | c96cd0da9b67e10989d2c0a963ffc627163b143e /sys/rpc/svc.h | |
parent | a3f89e36ec689ea7d784b3c7ab6fba71ffee159a (diff) | |
download | src-90f90687b3c354a3530e251e6a9192b404b379ae.tar.gz src-90f90687b3c354a3530e251e6a9192b404b379ae.zip |
add svcpool_close to handle killed nfsd threads
This patch adds a new function to the server krpc called
svcpool_close(). It is similar to svcpool_destroy(), but does not free
the data structures, so that the pool can be used again.
This function is then used instead of svcpool_destroy(),
svcpool_create() when the nfsd threads are killed.
PR: 204340
Reported by: Panzura
Approved by: rmacklem
Obtained from: rmacklem
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=313735
Diffstat (limited to 'sys/rpc/svc.h')
-rw-r--r-- | sys/rpc/svc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/rpc/svc.h b/sys/rpc/svc.h index 22322ba68448..dacf5d1a8992 100644 --- a/sys/rpc/svc.h +++ b/sys/rpc/svc.h @@ -729,6 +729,12 @@ extern SVCPOOL* svcpool_create(const char *name, extern void svcpool_destroy(SVCPOOL *pool); /* + * Close a service pool. Similar to svcpool_destroy(), but it does not + * free the data structures. As such, the pool can be used again. + */ +extern void svcpool_close(SVCPOOL *pool); + +/* * Transport independent svc_create routine. */ extern int svc_create(SVCPOOL *, void (*)(struct svc_req *, SVCXPRT *), |