mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
workqueue: doc: Add a note saturating the system_wq is not permitted
If something is expected to generate large number of concurrent works, it should utilize its own dedicated workqueue rather than system wq. Because this may saturate system_wq and potentially block other's works. eg, cgroup release work. Let's document this as a note. Signed-off-by: Chen Ridong <chenridong@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
9852d85ec9
commit
e3dddcfd3d
@ -357,6 +357,11 @@ Guidelines
|
||||
difference in execution characteristics between using a dedicated wq
|
||||
and a system wq.
|
||||
|
||||
Note: If something may generate more than @max_active outstanding
|
||||
work items (do stress test your producers), it may saturate a system
|
||||
wq and potentially lead to deadlock. It should utilize its own
|
||||
dedicated workqueue rather than the system wq.
|
||||
|
||||
* Unless work items are expected to consume a huge amount of CPU
|
||||
cycles, using a bound wq is usually beneficial due to the increased
|
||||
level of locality in wq operations and work item execution.
|
||||
|
Loading…
Reference in New Issue
Block a user