Commit 09007af
io_uring: fix provided buffer import
io_import_iovec uses the s pointer, but this was changed immediately
after the iovec was re-imported and so it was imported into the wrong
place.
Change the ordering.
Fixes: 2be2eb0 ("io_uring: ensure reads re-import for selected buffers")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220630132006.2825668-1-dylany@fb.com
[axboe: ensure we don't half-import as well]
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 29c1ac2 commit 09007af
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4318 | 4318 | | |
4319 | 4319 | | |
4320 | 4320 | | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
4321 | 4324 | | |
4322 | 4325 | | |
4323 | 4326 | | |
4324 | 4327 | | |
4325 | | - | |
| 4328 | + | |
4326 | 4329 | | |
4327 | 4330 | | |
4328 | 4331 | | |
4329 | 4332 | | |
4330 | 4333 | | |
4331 | | - | |
4332 | | - | |
4333 | 4334 | | |
4334 | 4335 | | |
4335 | 4336 | | |
| |||
0 commit comments