Commit ca0a265
committed
io_uring: don't keep looping for more events if we can't flush overflow
It doesn't make sense to wait for more events to come in, if we can't
even flush the overflow we already have to the ring. Return -EBUSY for
that condition, just like we do for attempts to submit with overflow
pending.
Cc: stable@vger.kernel.org # 5.11
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 46fe18b commit ca0a265
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
1454 | | - | |
| 1454 | + | |
1455 | 1455 | | |
1456 | 1456 | | |
1457 | 1457 | | |
| 1458 | + | |
| 1459 | + | |
1458 | 1460 | | |
1459 | 1461 | | |
1460 | 1462 | | |
1461 | 1463 | | |
1462 | | - | |
| 1464 | + | |
1463 | 1465 | | |
1464 | 1466 | | |
1465 | 1467 | | |
| 1468 | + | |
| 1469 | + | |
1466 | 1470 | | |
1467 | 1471 | | |
1468 | 1472 | | |
| |||
6883 | 6887 | | |
6884 | 6888 | | |
6885 | 6889 | | |
6886 | | - | |
| 6890 | + | |
| 6891 | + | |
| 6892 | + | |
| 6893 | + | |
| 6894 | + | |
6887 | 6895 | | |
6888 | 6896 | | |
6889 | 6897 | | |
6890 | 6898 | | |
| 6899 | + | |
6891 | 6900 | | |
6892 | 6901 | | |
6893 | 6902 | | |
| |||
0 commit comments