]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: pass correct parameters to io_req_set_res
authorMing Lei <ming.lei@redhat.com>
Wed, 3 Aug 2022 12:07:57 +0000 (20:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Aug 2022 14:45:25 +0000 (08:45 -0600)
commit1270f89cfed9e77b0dc4882e970cca3bb7714f28
tree54eacb921b4c8c17c3a4903116da2e85968a490e
parent05753637cb0a323712e2c5edc4c42e8d4a393224
io_uring: pass correct parameters to io_req_set_res

The two parameters of 'res' and 'cflags' are swapped, so fix it.
Without this fix, 'ublk del' hangs forever.

Cc: Pavel Begunkov <asml.silence@gmail.com>
Fixes: 603a3eb24227f ("io_uring: set completion results upfront")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220803120757.1668278-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/uring_cmd.c