io_uring/rw: mark readv/writev as vectored in the opcode definition
authorJens Axboe <axboe@kernel.dk>
Mon, 11 Sep 2023 19:46:07 +0000 (13:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Sep 2023 19:11:13 +0000 (13:11 -0600)
commit96fc4449c66b928e872b7421e0a81401342f9f28
tree9177eca66bbca842fdd995894b98954ca1cf906c
parentfd4648410a0f9e98341f43187f1a51f3ff2728b1
io_uring/rw: mark readv/writev as vectored in the opcode definition

This is cleaner than gating on the opcode type, particularly as more
read/write type opcodes may be added.

Then we can use that for the data import, and for __io_read() on
whether or not we need to copy state.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/opdef.c
io_uring/opdef.h
io_uring/rw.c