Lines Matching defs:worker_threads
362 static int worker_threads = -1;
363 TUNABLE_INT("kern.cam.ctl.worker_threads", &worker_threads);
364 SYSCTL_INT(_kern_cam_ctl, OID_AUTO, worker_threads, CTLFLAG_RDTUN,
365 &worker_threads, 1, "Number of worker threads");
1149 if (worker_threads <= 0)
1150 worker_threads = max(1, mp_ncpus / 4);
1151 if (worker_threads > CTL_MAX_THREADS)
1152 worker_threads = CTL_MAX_THREADS;
1154 for (i = 0; i < worker_threads; i++) {
14215 io->io_hdr.nexus.initid.id) % worker_threads;
14229 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];
14242 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];
14255 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];