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)
commit4e9067025259d1227c7f4f18a02c166c93e49290
tree20634659013ae7b8136d6bb470881cdc9b5ce33f
parentbb68d504f7c4183178b00c1af68fca870728e7e0
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