OSDN Git Service

io_uring: move BUFFER_SELECT check into *recv[msg]
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jul 2020 20:28:03 +0000 (23:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 19:00:45 +0000 (13:00 -0600)
commitbc02ef3325e3ef524ef29b65681ca4207b781224
treeda3ea8535bcfccca7ac037b79d6c70b88d40af7b
parent0e1b6fe3d1e5f1b79c5bec37881c98febfba7718
io_uring: move BUFFER_SELECT check into *recv[msg]

Move REQ_F_BUFFER_SELECT flag check out of io_recv_buffer_select(), and
do that in its call sites That saves us from double error checking and
possibly an extra function call.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c