Searched hist:bdf8b9bf (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/kernel/ |
H A D | workqueue_internal.h | bdf8b9bf Wed May 17 22:02:08 CDT 2023 Tejun Heo <tj@kernel.org> workqueue: Improve locking rule description for worker fields
* Some worker fields are modified only by the worker itself while holding pool->lock thus making them safe to read from self, IRQ context if the CPU is running the worker or while holding pool->lock. Add 'K' locking rule for them.
* worker->sleeping is currently marked "None" which isn't very descriptive. It's used only by the worker itself. Add 'S' locking rule for it.
A future patch will depend on the 'K' rule to access worker->current_* from the scheduler ticks.
Signed-off-by: Tejun Heo <tj@kernel.org>
|
H A D | workqueue.c | bdf8b9bf Wed May 17 22:02:08 CDT 2023 Tejun Heo <tj@kernel.org> workqueue: Improve locking rule description for worker fields
* Some worker fields are modified only by the worker itself while holding pool->lock thus making them safe to read from self, IRQ context if the CPU is running the worker or while holding pool->lock. Add 'K' locking rule for them.
* worker->sleeping is currently marked "None" which isn't very descriptive. It's used only by the worker itself. Add 'S' locking rule for it.
A future patch will depend on the 'K' rule to access worker->current_* from the scheduler ticks.
Signed-off-by: Tejun Heo <tj@kernel.org>
|