workqueue: Implement workqueue_set_min_active()
authorTejun Heo <tj@kernel.org>
Fri, 9 Feb 2024 00:11:56 +0000 (14:11 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 9 Feb 2024 21:13:59 +0000 (11:13 -1000)
commit8f172181f24bb5df7675225d9b5b66d059613f50
tree1d3d37638d3aa6f2193e68017b69b10f65e55b2f
parent516d3dc99f4f2ab856d879696cd3a5d7f6db7796
workqueue: Implement workqueue_set_min_active()

Since 5797b1c18919 ("workqueue: Implement system-wide nr_active enforcement
for unbound workqueues"), unbound workqueues have separate min_active which
sets the number of interdependent work items that can be handled. This value
is currently initialized to WQ_DFL_MIN_ACTIVE which is 8. This isn't high
enough for some users, let's add an interface to adjust the setting.

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/workqueue.h
kernel/workqueue.c