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>
Thu, 21 Sep 2023 18:00:46 +0000 (12:00 -0600)
commitd2d778fbf9964e4e5b8d7420eba8ec5ce938e794
tree847bb33ec1926213798971656eaf414f83566a54
parenta08d195b586a217d76b42062f88f375a3eedda4d
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