workqueue: add more debug when null pwq
authorjianxin.pan <jianxin.pan@amlogic.com>
Mon, 7 May 2018 05:51:20 +0000 (13:51 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 10 May 2018 04:30:48 +0000 (21:30 -0700)
PD#158184: print work and worker function when null pwq

Change-Id: I552c6585935e47abfb9593f4a2d2f1588906aaf8
Signed-off-by: jianxin.pan <jianxin.pan@amlogic.com>
kernel/workqueue.c

index 661e096..326219a 100644 (file)
@@ -2042,7 +2042,9 @@ __acquires(&pool->lock)
 #endif
 #ifdef CONFIG_AMLOGIC_MODIFY
        if (!pwq) {
-               WARN_ONCE(1, "Warning: pool_workqueue is NULL!!!!!!!!!!!!.\n");
+               WARN_ONCE(1, "<%s> pwq_NULL <%lx> <%pf>, <%pf> %s\n",
+                       __func__, atomic_long_read(&work->data),
+                       work->func, worker->current_func, worker->desc);
                return;
        }