Skip to content

Commit f9e39f9

Browse files
authored
Add notes to system_taskq
Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes #12771
1 parent 269b5da commit f9e39f9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

module/os/freebsd/spl/spl_taskq.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ __FBSDID("$FreeBSD$");
5555
static uint_t taskq_tsd;
5656
static uma_zone_t taskq_zone;
5757

58+
/*
59+
* Global system-wide dynamic task queue available for all consumers. This
60+
* taskq is not intended for long-running tasks; instead, a dedicated taskq
61+
* should be created.
62+
*/
5863
taskq_t *system_taskq = NULL;
5964
taskq_t *system_delay_taskq = NULL;
6065
taskq_t *dynamic_taskq = NULL;

module/os/linux/spl/spl-taskq.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ module_param(spl_taskq_thread_sequential, int, 0644);
5151
MODULE_PARM_DESC(spl_taskq_thread_sequential,
5252
"Create new taskq threads after N sequential tasks");
5353

54-
/* Global system-wide dynamic task queue available for all consumers */
54+
/*
55+
* Global system-wide dynamic task queue available for all consumers. This
56+
* taskq is not intended for long-running tasks; instead, a dedicated taskq
57+
* should be created.
58+
*/
5559
taskq_t *system_taskq;
5660
EXPORT_SYMBOL(system_taskq);
5761
/* Global dynamic task queue for long delay */

0 commit comments

Comments
 (0)