Two small patches for workqueue
cover Two small patches for workqueue
Two small boring patches for workqueue.
---
Ammar Faizi (2):
workqueue: Simplify a pr_warn() call in wq_select_unbound_cpu()
MAINTAINERS: Add workqueue_internal.h to the WORKQUEUE entry
MAINTAINERS | 1 + kernel/workqueue.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-)
base-commit: 2fcd07b7ccd5fd10b2120d298363e4e6c53ccf9c
Signature · 1 line
Ammar Faizi
PATCH 1/2 workqueue: Simplify a pr_warn() call in wq_select_unbound_cpu()
Use pr_warn_once() to achieve the same thing. It's simpler.
--- kernel/workqueue.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
kernel/workqueue.c +2 -4
@@ -1392,15 +1392,13 @@ static bool is_chained_work(struct workqueue_struct *wq)*/ static int wq_select_unbound_cpu (int cpu) { -static bool printed_dbg_warning;int new_cpu;if (likely (!wq_debug_force_rr_cpu)) {if (cpumask_test_cpu (cpu, wq_unbound_cpumask))return cpu; - }else if (!printed_dbg_warning) { -pr_warn ("workqueue: round-robin CPU selection forced, expect performance impact\n" ); - printed_dbg_warning = true; + }else { +pr_warn_once ("workqueue: round-robin CPU selection forced, expect performance impact\n" ); }if (cpumask_empty (wq_unbound_cpumask))
Signature · 1 line
Ammar Faizi
Re: [PATCH v1 1/2] workqueue: Simplify a pr_warn() call in wq_select_unbound_cpu()
Quoted 5 lines · Ammar Faizi
Use
pr_warn_once()to achieve the same thing. It's simpler.Signed-off-by Ammar Faizi <[email protected]>---
For both of the patches
Thanks
Lai
PATCH 2/2 MAINTAINERS: Add workqueue_internal.h to the WORKQUEUE entry
In reply to Ammar FaiziThis file doesn't have a maintainer. It should belong to the WORKQUEUE entry part. Add it to the WORKQUEUE entry.
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -22585,6 +22585,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git F: Documentation/core-api/workqueue.rst F: include/linux/workqueue.h F: kernel/workqueue.c +F: kernel/workqueue_internal.h WWAN DRIVERS M: Loic Poulain <[email protected]>
Signature · 1 line
Ammar Faizi
Tejun Heo
maintainerQuoted 3 lines · Ammar Faizi
Two small boring patches for workqueue.
Signed-off-by Ammar Faizi <[email protected]>
Applied 1-2 to wq/for-6.4.
Thanks.
Signature · 1 line
tejun