Commit 9817ad8
committed
io_uring/net: remove dependency on REQ_F_PARTIAL_IO for sr->done_io
Ensure that prep handlers always initialize sr->done_io before any
potential failure conditions, and with that, we now it's always been
set even for the failure case.
With that, we don't need to use the REQ_F_PARTIAL_IO flag to gate on that.
Additionally, we should not overwrite req->cqe.res unless sr->done_io is
actually positive.
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent deaef31 commit 9817ad8
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
390 | 392 | | |
391 | 393 | | |
392 | 394 | | |
| |||
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
412 | | - | |
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| |||
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| 635 | + | |
| 636 | + | |
634 | 637 | | |
635 | 638 | | |
636 | 639 | | |
| |||
667 | 670 | | |
668 | 671 | | |
669 | 672 | | |
670 | | - | |
671 | 673 | | |
672 | 674 | | |
673 | 675 | | |
| |||
1055 | 1057 | | |
1056 | 1058 | | |
1057 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
1058 | 1062 | | |
1059 | 1063 | | |
1060 | 1064 | | |
| |||
1107 | 1111 | | |
1108 | 1112 | | |
1109 | 1113 | | |
1110 | | - | |
1111 | | - | |
1112 | 1114 | | |
1113 | 1115 | | |
1114 | 1116 | | |
| |||
1353 | 1355 | | |
1354 | 1356 | | |
1355 | 1357 | | |
1356 | | - | |
| 1358 | + | |
1357 | 1359 | | |
1358 | 1360 | | |
1359 | 1361 | | |
| |||
0 commit comments