Skip to content

Commit f4ce1f3

Browse files
committed
Merge tag 'wq-for-6.14-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue update from Tejun Heo: "This contains a patch improve debug visibility. While it isn't a fix, the change carries virtually no risk and makes it substantially easier to chase down a class of problems" * tag 'wq-for-6.14-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: Log additional details when rejecting work
2 parents e6d3c4e + 8221fd1 commit f4ce1f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/workqueue.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,8 +2254,10 @@ static void __queue_work(int cpu, struct workqueue_struct *wq,
22542254
* queues a new work item to a wq after destroy_workqueue(wq).
22552255
*/
22562256
if (unlikely(wq->flags & (__WQ_DESTROYING | __WQ_DRAINING) &&
2257-
WARN_ON_ONCE(!is_chained_work(wq))))
2257+
WARN_ONCE(!is_chained_work(wq), "workqueue: cannot queue %ps on wq %s\n",
2258+
work->func, wq->name))) {
22582259
return;
2260+
}
22592261
rcu_read_lock();
22602262
retry:
22612263
/* pwq which will be used unless @work is executing elsewhere */

0 commit comments

Comments
 (0)