Commit e2d3758
committed
t/io_uring: fix passthrough fixed buffer support
A previous commit changed t/io_uring to register a single region for
all of the registered buffers, and while it updated non-passthrough IO
for that change, the passthrough path still sets a specific buffer
index. This makes passthrough with fixed buffers fail for any buffer
but the first one, as it's asking for a buffer that doesn't exist rather
than index the first one. That causes -EFAULT completions.
Ensure the buf_index is set to 0 for passthrough as well.
Fixes: 21f461f ("t/io_uring: register single buffer for whole IO region")
Signed-off-by: Jens Axboe <[email protected]>1 parent 0e0d9a3 commit e2d3758
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
0 commit comments