svn commit: r357685 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Sat Feb 8 21:59:47 UTC 2020


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)


More information about the svn-src-head mailing list