Revert "workqueue: Fix hung time report of worker pools"
This reverts commit647781347awhich is commit335a42ebb0upstream. It breaks the Android kernel abi, so revert it. If it needs to come back later, it can do so in an abi-safe way. Bug: 161946584 Change-Id: I702fcb45a1147789f1ff78ed07500162e8632d5f Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
24c3784e97
commit
24c41942a4
1 changed files with 3 additions and 6 deletions
|
|
@ -4833,19 +4833,16 @@ void show_workqueue_state(void)
|
|||
for_each_pool(pool, pi) {
|
||||
struct worker *worker;
|
||||
bool first = true;
|
||||
unsigned long hung = 0;
|
||||
|
||||
raw_spin_lock_irqsave(&pool->lock, flags);
|
||||
if (pool->nr_workers == pool->nr_idle)
|
||||
goto next_pool;
|
||||
|
||||
/* How long the first pending work is waiting for a worker. */
|
||||
if (!list_empty(&pool->worklist))
|
||||
hung = jiffies_to_msecs(jiffies - pool->watchdog_ts) / 1000;
|
||||
|
||||
pr_info("pool %d:", pool->id);
|
||||
pr_cont_pool_info(pool);
|
||||
pr_cont(" hung=%lus workers=%d", hung, pool->nr_workers);
|
||||
pr_cont(" hung=%us workers=%d",
|
||||
jiffies_to_msecs(jiffies - pool->watchdog_ts) / 1000,
|
||||
pool->nr_workers);
|
||||
if (pool->manager)
|
||||
pr_cont(" manager: %d",
|
||||
task_pid_nr(pool->manager->task));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue