• Jens Axboe's avatar
    io_uring/rsrc: cleanup io_pin_pages() · 922a2c78
    Jens Axboe authored
    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>
    922a2c78
rsrc.c 29.7 KB