From fd55935560f5c869e70534d852d47a50f3ef80cf Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 7 Jun 2018 16:58:11 +0300 Subject: [PATCH] kernel: work_q: Document implications of default sys work_q priority Default value of CONFIG_SYSTEM_WORKQUEUE_PRIORITY is -1, which means it's run by the cooperative thread. Explicitly mention (in the Kconfig help) that it means that any work handler submited to this default queue won't be preempted by some other thread (which is generally good, but worth documenting explicitly). Signed-off-by: Paul Sokolovsky --- kernel/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/Kconfig b/kernel/Kconfig index 0a89922180c..e1b694ba57a 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -330,6 +330,10 @@ config SYSTEM_WORKQUEUE_PRIORITY default -1 default 0 if !COOP_ENABLED default -2 if COOP_ENABLED && !PREEMPT_ENABLED + help + By default, system work queue priority is the lowest cooperative + priority. This means that any work handler, once started, won't + be preempted by any other thread until finished. config OFFLOAD_WORKQUEUE_STACK_SIZE int "Workqueue stack size for thread offload requests"