Bind CTL backends taskqueues to the CTL process.
MFC after: 2 weeks
This commit is contained in:
parent
66a23ebe19
commit
12373e9519
@ -2367,9 +2367,10 @@ ctl_be_block_create(struct ctl_be_block_softc *softc, struct ctl_lun_req *req)
|
||||
* device, he can specify that when the LUN is created, or change
|
||||
* the tunable/sysctl to alter the default number of threads.
|
||||
*/
|
||||
retval = taskqueue_start_threads(&be_lun->io_taskqueue,
|
||||
retval = taskqueue_start_threads_in_proc(&be_lun->io_taskqueue,
|
||||
/*num threads*/num_threads,
|
||||
/*priority*/PUSER,
|
||||
/*proc*/control_softc->ctl_proc,
|
||||
/*thread name*/
|
||||
"%s taskq", be_lun->lunname);
|
||||
|
||||
|
@ -1147,9 +1147,10 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_softc *softc,
|
||||
goto bailout_error;
|
||||
}
|
||||
|
||||
retval = taskqueue_start_threads(&be_lun->io_taskqueue,
|
||||
retval = taskqueue_start_threads_in_proc(&be_lun->io_taskqueue,
|
||||
/*num threads*/1,
|
||||
/*priority*/PUSER,
|
||||
/*proc*/control_softc->ctl_proc,
|
||||
/*thread name*/
|
||||
"%s taskq", be_lun->lunname);
|
||||
if (retval != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user