Author: mav Date: Sat Feb 8 21:59:46 2020 New Revision: 357685 URL: https://svnweb.freebsd.org/changeset/base/357685
Log: Bind CTL backends taskqueues to the CTL process. MFC after: 2 weeks Modified: head/sys/cam/ctl/ctl_backend_block.c head/sys/cam/ctl/ctl_backend_ramdisk.c Modified: head/sys/cam/ctl/ctl_backend_block.c ============================================================================== --- head/sys/cam/ctl/ctl_backend_block.c Sat Feb 8 21:55:56 2020 (r357684) +++ head/sys/cam/ctl/ctl_backend_block.c Sat Feb 8 21:59:46 2020 (r357685) @@ -2367,9 +2367,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: head/sys/cam/ctl/ctl_backend_ramdisk.c ============================================================================== --- head/sys/cam/ctl/ctl_backend_ramdisk.c Sat Feb 8 21:55:56 2020 (r357684) +++ head/sys/cam/ctl/ctl_backend_ramdisk.c Sat Feb 8 21:59:46 2020 (r357685) @@ -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) _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"