diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-05 17:31:33 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-05 17:31:33 -0700 | 
| commit | af6c5d5e01ad9f2c9ca38cccaae6b5d67ddd241f (patch) | |
| tree | 5bfdb1ee5c0b904732929eae55fe6da13bd273d5 /kernel/workqueue_internal.h | |
| parent | 9f25a8da423226d7797e35a132535186c531228b (diff) | |
| parent | 66448bc274cadedb71fda7d914e7c29d8dead217 (diff) | |
Merge branch 'for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue updates from Tejun Heo:
 - make kworkers report the workqueue it is executing or has executed
   most recently in /proc/PID/comm (so they show up in ps/top)
 - CONFIG_SMP shuffle to move stuff which isn't necessary for UP builds
   inside CONFIG_SMP.
* 'for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
  workqueue: move function definitions within CONFIG_SMP block
  workqueue: Make sure struct worker is accessible for wq_worker_comm()
  workqueue: Show the latest workqueue name in /proc/PID/{comm,stat,status}
  proc: Consolidate task->comm formatting into proc_task_name()
  workqueue: Set worker->desc to workqueue name by default
  workqueue: Make worker_attach/detach_pool() update worker->pool
  workqueue: Replace pool->attach_mutex with global wq_pool_attach_mutex
Diffstat (limited to 'kernel/workqueue_internal.h')
| -rw-r--r-- | kernel/workqueue_internal.h | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/workqueue_internal.h b/kernel/workqueue_internal.h index d390d1be3748..66fbb5a9e633 100644 --- a/kernel/workqueue_internal.h +++ b/kernel/workqueue_internal.h @@ -31,13 +31,12 @@ struct worker {  	struct work_struct	*current_work;	/* L: work being processed */  	work_func_t		current_func;	/* L: current_work's fn */  	struct pool_workqueue	*current_pwq; /* L: current_work's pwq */ -	bool			desc_valid;	/* ->desc is valid */  	struct list_head	scheduled;	/* L: scheduled works */  	/* 64 bytes boundary on 64bit, 32 on 32bit */  	struct task_struct	*task;		/* I: worker task */ -	struct worker_pool	*pool;		/* I: the associated pool */ +	struct worker_pool	*pool;		/* A: the associated pool */  						/* L: for rescuers */  	struct list_head	node;		/* A: anchored at pool->workers */  						/* A: runs through worker->node */  | 
