Date: Sat, 8 Feb 2020 21:59:47 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357685 - head/sys/cam/ctl Message-ID: <202002082159.018LxlQ8076899@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002082159.018LxlQ8076899>