summaryrefslogtreecommitdiff
path: root/tools/lib/perf/lib.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-06-25 10:17:06 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-06 11:04:16 +0200
commit43c6ced10aafd2afcf8c4806aac454f1d60af95d (patch)
tree6e27ddc2357999b516b500cd9aed0716760ee045 /tools/lib/perf/lib.c
parentcebdb675d5584334e6536a63e3ecf01362676d10 (diff)
io_uring/net: mark iov as dynamically allocated even for single segments
[ Upstream commit 9a709b7e98e6fa51600b5f2d24c5068efa6d39de ] A bigger array of vecs could've been allocated, but io_ring_buffers_peek() still decided to cap the mapped range depending on how much data was available. Hence don't rely on the segment count to know if the request should be marked as needing cleanup, always check upfront if the iov array is different than the fast_iov array. Fixes: 26ec15e4b0c1 ("io_uring/kbuf: don't truncate end buffer for multiple buffer peeks") Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/perf/lib.c')
0 files changed, 0 insertions, 0 deletions