svn commit: r358238 - stable/12/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sat Feb 22 04:49:33 UTC 2020
Author: mav
Date: Sat Feb 22 04:49:32 2020
New Revision: 358238
URL: https://svnweb.freebsd.org/changeset/base/358238
Log:
MFC r357685: Bind CTL backends taskqueues to the CTL process.
Modified:
stable/12/sys/cam/ctl/ctl_backend_block.c
stable/12/sys/cam/ctl/ctl_backend_ramdisk.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/cam/ctl/ctl_backend_block.c
==============================================================================
--- stable/12/sys/cam/ctl/ctl_backend_block.c Sat Feb 22 04:02:07 2020 (r358237)
+++ stable/12/sys/cam/ctl/ctl_backend_block.c Sat Feb 22 04:49:32 2020 (r358238)
@@ -2379,9 +2379,10 @@ ctl_be_block_create(struct ctl_be_block_softc *softc,
* 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);
Modified: stable/12/sys/cam/ctl/ctl_backend_ramdisk.c
==============================================================================
--- stable/12/sys/cam/ctl/ctl_backend_ramdisk.c Sat Feb 22 04:02:07 2020 (r358237)
+++ stable/12/sys/cam/ctl/ctl_backend_ramdisk.c Sat Feb 22 04:49:32 2020 (r358238)
@@ -1147,9 +1147,10 @@ ctl_backend_ramdisk_create(struct ctl_be_ramdisk_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)
More information about the svn-src-all
mailing list