Commit 6f0974e
committed
io_uring: don't save/restore iowait state
This kind of state is per-syscall, and since we're doing the waiting off
entering the io_uring_enter(2) syscall, there's no way that iowait can
already be set for this case. Simplify it by setting it if we need to,
and always clearing it to 0 when done.
Fixes: 7b72d66 ("io_uring: gate iowait schedule on having pending requests")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 045395d commit 6f0974e
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2539 | 2539 | | |
2540 | 2540 | | |
2541 | 2541 | | |
2542 | | - | |
| 2542 | + | |
2543 | 2543 | | |
2544 | 2544 | | |
2545 | 2545 | | |
| |||
2557 | 2557 | | |
2558 | 2558 | | |
2559 | 2559 | | |
2560 | | - | |
2561 | 2560 | | |
2562 | 2561 | | |
2563 | 2562 | | |
2564 | 2563 | | |
2565 | 2564 | | |
2566 | 2565 | | |
2567 | 2566 | | |
2568 | | - | |
| 2567 | + | |
2569 | 2568 | | |
2570 | 2569 | | |
2571 | 2570 | | |
| |||
0 commit comments