Skip to content
Commit 3a0a9211 authored by Tobias Holl's avatar Tobias Holl Committed by Greg Kroah-Hartman
Browse files

io_uring/rsrc: check for nonconsecutive pages

commit 776617db upstream.

Pages that are from the same folio do not necessarily need to be
consecutive. In that case, we cannot consolidate them into a single bvec
entry. Before applying the huge page optimization from commit 57bebf80
("io_uring/rsrc: optimise registered huge pages"), check that the memory
is actually consecutive.

Cc: stable@vger.kernel.org
Fixes: 57bebf80

 ("io_uring/rsrc: optimise registered huge pages")
Signed-off-by: default avatarTobias Holl <tobias@tholl.xyz>
[axboe: formatting]
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8bc13e33
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