]> 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)
commitf50ab969ff38a70cd9620e386faf1b6590192ef7
tree20634659013ae7b8136d6bb470881cdc9b5ce33f
parent3f0234a451d86b1f148b942954e830c41259e6f5
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