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)
commitff2557b7224ea9a19fb79eb4bd16d4deef57816a
tree54eacb921b4c8c17c3a4903116da2e85968a490e
parente2b542100719a93f8cdf6d90185410d38a57a4c1
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: de23077eda61f ("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