Skip to content
Commit 922a2c78 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rsrc: cleanup io_pin_pages()



This function is overly convoluted with a goto error path, and checks
under the mmap_read_lock() that don't need to be at all. Rearrange it
a bit so the checks and errors fall out naturally, rather than needing
to jump around for it.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 93b8cc60
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment