mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Add call to svcpool_close() for the NFSv4 callback pool (svcpool_nfscbd).
A function called svcpool_close() was added to the server side krpc by r313735, so that a pool could be closed without destroying the data structures. This little patch adds a call to it for the callback pool (svcpool_nfscbd), so that the nfscbd daemon can be killed/restarted and continue to work correctly. MFC after: 2 weeks
This commit is contained in:
parent
d5b29b60f8
commit
60287c0c03
1 changed files with 5 additions and 0 deletions
|
|
@ -278,6 +278,11 @@ nfsrvd_cbinit(int terminating)
|
|||
while (nfs_numnfscbd > 0)
|
||||
msleep(&nfs_numnfscbd, NFSDLOCKMUTEXPTR, PZERO,
|
||||
"nfscbdt", 0);
|
||||
if (nfscbd_pool != NULL) {
|
||||
NFSD_UNLOCK();
|
||||
svcpool_close(nfscbd_pool);
|
||||
NFSD_LOCK();
|
||||
}
|
||||
}
|
||||
|
||||
if (nfscbd_pool == NULL) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue