io_uring/zcrx: return error from io_zcrx_map_area_*
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 2 Jul 2025 14:29:05 +0000 (15:29 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Jul 2025 17:59:56 +0000 (11:59 -0600)
commit06897ddfc523cea415bd139148c5276b8b61b016
tree956b472c102bf49d6dd985721043122d9dfa4ff1
parente9a9ddb15b092eb4dc0d34a3e043e73f2510a6b0
io_uring/zcrx: return error from io_zcrx_map_area_*

io_zcrx_map_area_*() helpers return the number of processed niovs, which
we use to unroll some of the mappings for user memory areas. It's
unhandy, and dmabuf doesn't care about it. Return an error code instead
and move failure partial unmapping into io_zcrx_map_area_umem().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: David Wei <dw@davidwei.uk>
Link: https://lore.kernel.org/r/42668e82be3a84b07ee8fc76d1d6d5ac0f137fe5.1751466461.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c