engines/io_uring: use fixed opcodes for pre-mapped buffers
authorKeith Busch <kbusch@kernel.org>
Tue, 14 Jan 2020 21:24:24 +0000 (13:24 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 14 Jan 2020 21:27:22 +0000 (14:27 -0700)
commit3f1e3af7cff07d4aedcd9a58ae00cb1a2189fcc2
tree6688dbaa07f38e07d45fa8de8e12e9f5534c3c8e
parent7eff05d723d1330a5407b2bdd9145f1bfb6dd0e1
engines/io_uring: use fixed opcodes for pre-mapped buffers

Use the correct opcode when for reads and writes using the fixedbuf
option, otherwise EINVAL errors will be returned to these requests.

Fixes: b10b1e70a ("io_uring: add option for non-vectored read/write commands")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c