Lines Matching refs:nfsrv_uc_thread_count
60 #define NFS_UC_HASH(x) ((((uint32_t)(uintptr_t)(x)) >> 3) % nfsrv_uc_thread_count)
75 static int32_t nfsrv_uc_thread_count;
133 nfsrv_uc_thread_count--;
134 wakeup(&nfsrv_uc_thread_count);
206 while (nfsrv_uc_shutdown || nfsrv_uc_thread_count > 0)
207 msleep(&nfsrv_uc_thread_count, nfsrv_uc_shutdown_lock, PSOCK, "nfsd_upcall_shutdown_wait", NULL);
211 error = kernel_thread_start(nfsrv_uc_thread, (void *)(uintptr_t)i, &nfsrv_uc_queue_tbl[nfsrv_uc_thread_count].ucq_thd);
213 nfsrv_uc_thread_count++;
218 if (nfsrv_uc_thread_count == 0) {
239 int32_t thread_count = nfsrv_uc_thread_count;
253 while (nfsrv_uc_thread_count > 0)
254 msleep(&nfsrv_uc_thread_count, nfsrv_uc_shutdown_lock, PSOCK, "nfsd_upcall_shutdown_stop", NULL);
257 for (i = 0; i < nfsrv_uc_thread_count; i++) {
360 if (start && nfsrv_uc_thread_count == 0)
364 * We don't take a lock since once we're up nfsrv_uc_thread_count does
368 if (nfsrv_uc_thread_count) {