Re: sched: Remove pointless preemption disable in sched_submit_work()

From: Jens Axboe
Date: Tue Sep 28 2021 - 10:41:13 EST


On 9/28/21 8:30 AM, Thomas Gleixner wrote:
> Neither wq_worker_sleeping() nor io_wq_worker_sleeping() require to be invoked
> with preemption disabled:
>
> - The worker flag checks operations only need to be serialized against
> the worker thread itself.
>
> - The accounting and worker pool operations are serialized with locks.
>
> which means that disabling preemption has neither a reason nor a
> value. Remove it.

Reviewed-by: Jens Axboe <axboe@xxxxxxxxx>

--
Jens Axboe