aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2020-02-08 21:59:46 +0000
committerAlexander Motin <mav@FreeBSD.org>2020-02-08 21:59:46 +0000
commit12373e951965d9abcb21d0c47a0cb81d9afc8ccd (patch)
tree234efdd964abae885e1091d03847ce411167348f /sys/cam/ctl
parent66a23ebe19d34c52f8684eee835d4e96e4517ec0 (diff)
downloadsrc-12373e951965d9abcb21d0c47a0cb81d9afc8ccd.tar.gz
src-12373e951965d9abcb21d0c47a0cb81d9afc8ccd.zip
Bind CTL backends taskqueues to the CTL process.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=357685
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r--sys/cam/ctl/ctl_backend_block.c3
-rw-r--r--sys/cam/ctl/ctl_backend_ramdisk.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_backend_block.c b/sys/cam/ctl/ctl_backend_block.c
index d8e0c751de39..5282bd136535 100644
--- a/sys/cam/ctl/ctl_backend_block.c
+++ b/sys/cam/ctl/ctl_backend_block.c
@@ -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);
diff --git a/sys/cam/ctl/ctl_backend_ramdisk.c b/sys/cam/ctl/ctl_backend_ramdisk.c
index 91f2fa4e8541..c0f190cc931a 100644
--- a/sys/cam/ctl/ctl_backend_ramdisk.c
+++ b/sys/cam/ctl/ctl_backend_ramdisk.c
@@ -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)