]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Remove aios_size argument from submit_batch
authorRobin Geuze <robing@transip.nl>
Tue, 23 Nov 2021 14:16:36 +0000 (15:16 +0100)
committerIgor Fedotov <igor.fedotov@croit.io>
Fri, 19 Jul 2024 11:54:30 +0000 (14:54 +0300)
commitae75fa86a52addfc50025922cc5da4ad882526c4
tree11440c411e04e74158b14c7eca0acebcf71636dc
parent9107d66e0f19183c14ce2f60aed55d395783e074
osd: Remove aios_size argument from submit_batch
Due to aios_size being a uint16 and the source value for the actual
call being an int there was a possible overflow. This was "fixed"
with an assert, however that still causes a crash.

This commit removes the need for aios_size completely by iterating
over the list and submitting it in max_iodepth batches.

Fixes: https://tracker.ceph.com/issues/46366
Signed-off-by: Robin Geuze <robin.geuze@nl.team.blue>
(cherry picked from commit f87db49b0013088f1c87802886c4c16ce47c5cc2)
(cherry picked from commit 7b52409ed70a0c9e382a0fc76a1d7a508aeaf27d)
src/blk/aio/aio.cc
src/blk/aio/aio.h
src/blk/kernel/KernelDevice.cc
src/blk/kernel/io_uring.cc
src/blk/kernel/io_uring.h