]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: always use req->buf_index for the provided buffer group
authorJens Axboe <axboe@kernel.dk>
Fri, 29 Apr 2022 01:09:43 +0000 (19:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 May 2022 12:29:06 +0000 (06:29 -0600)
commitb358a0e3aa50c45b2d00f5a8d467ff145bac8ba2
tree20634659013ae7b8136d6bb470881cdc9b5ce33f
parent48bd8a80626bc5c0900b7942b1c9d9afdaf53b91
io_uring: always use req->buf_index for the provided buffer group

The read/write opcodes use it already, but the recv/recvmsg do not. If
we switch them over and read and validate this at init time while we're
checking if the opcode supports it anyway, then we can do it in one spot
and we don't have to pass in a separate group ID for io_buffer_select().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c