]> 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, 12 Apr 2024 11:35:47 +0000 (14:35 +0300)
commit7b52409ed70a0c9e382a0fc76a1d7a508aeaf27d
treeb5a757c30b2a5f7499bbf23a3dc6f0aaad624ebf
parent62c1ed82828f50c37e2197feb3437acd430ed471
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)
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