Commit b945efc
sched: Remove pointless preemption disable in sched_submit_work()
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 and update the stale comment.
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Lai Jiangshan <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Link: https://lkml.kernel.org/r/8735pnafj7.ffs@tglx1 parent 670721c commit b945efc
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6251 | 6251 | | |
6252 | 6252 | | |
6253 | 6253 | | |
6254 | | - | |
6255 | | - | |
6256 | | - | |
6257 | | - | |
6258 | | - | |
6259 | | - | |
| 6254 | + | |
| 6255 | + | |
6260 | 6256 | | |
6261 | 6257 | | |
6262 | | - | |
6263 | 6258 | | |
6264 | 6259 | | |
6265 | 6260 | | |
6266 | 6261 | | |
6267 | | - | |
6268 | 6262 | | |
6269 | 6263 | | |
6270 | 6264 | | |
| |||
0 commit comments