Skip to content

Commit

Permalink
workqueue: Remove the outdated comment before wq_worker_sleeping()
Browse files Browse the repository at this point in the history
It isn't called with preempt disabled now.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Lai Jiangshan authored and Tejun Heo committed Dec 9, 2021
1 parent c741e49 commit ccf4515
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,7 @@ void wq_worker_running(struct task_struct *task)
* @task: task going to sleep
*
* This function is called from schedule() when a busy worker is
* going to sleep. Preemption needs to be disabled to protect ->sleeping
* assignment.
* going to sleep.
*/
void wq_worker_sleeping(struct task_struct *task)
{
Expand Down

0 comments on commit ccf4515

Please sign in to comment.