Files
erofs-linux/kernel
Breno Leitao 4e0ee51cc2 workqueue: BUG_ON() instead of returning NULL in wq_node_nr_active()
wq_node_nr_active() warns and returns NULL when @wq is not unbound, but
every caller dereferences the result right away, so the WARN_ON_ONCE()
only moves the oops one frame up, as raised by Tejun.

Fix it by BUGing_ON() instead of this silly WARN_ON_ONCE();

Fixes: b72fdc6510 ("workqueue: account nr_active by the backing pool")
Suggested-by: Tejun Heo <[email protected]>
Signed-off-by: Breno Leitao <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
2026-08-12 07:14:22 -10:00
..
2026-06-02 15:36:06 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-03-27 10:19:08 -05:00
…
…
…
…
…
…
…
…
…
…