aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLai Jiangshan <jiangshan.ljs@antgroup.com>2024-06-19 18:39:34 +0800
committerTejun Heo <tj@kernel.org>2024-06-19 07:40:15 -1000
commitb56c720718e97d2a1a0523e38fdc836adc188a2e (patch)
tree784193acd3e3ecd6190ae5b9443e39298b4444d0 /tools/perf/scripts/python/bin
parentworkqueue: replace call_rcu by kfree_rcu for simple kmem_cache_free callback (diff)
downloadlinux-b56c720718e97d2a1a0523e38fdc836adc188a2e.tar.gz
linux-b56c720718e97d2a1a0523e38fdc836adc188a2e.zip
workqueue: Avoid nr_active manipulation in grabbing inactive items
Current try_to_grab_pending() activates the inactive item and subsequently treats it as though it were a standard activated item. This approach prevents duplicating handling logic for both active and inactive items, yet the premature activation of an inactive item triggers trace_workqueue_activate_work(), yielding an unintended user space visible side effect. And the unnecessary increment of the nr_active, which is not a simple counter now, followed by a counteracted decrement, is inefficient and complicates the code. Just remove the nr_active manipulation code in grabbing inactive items. Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions