]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix provided buffer import
authorDylan Yudaken <dylany@fb.com>
Thu, 30 Jun 2022 13:20:06 +0000 (06:20 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jun 2022 17:34:41 +0000 (11:34 -0600)
commite447d37af5696fd4e909a5f8f4ee5d04b44cd63b
tree3546a6c5ce9a20d1a6170e406d990b67e330e849
parentd47a6144400cac2efb74de5ac6266d8033c15023
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: 6e5ca03d144b ("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>
fs/io_uring.c