From: Jaya Prakash Date: Mon, 6 Jul 2026 19:14:59 +0000 (+0530) Subject: blk/kernel : skip AIO thread for devices with size < block_size X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=70fdcaae8600f673d5806782fdc7a97e119685f8;p=ceph.git blk/kernel : skip AIO thread for devices with size < block_size Fixes: https://tracker.ceph.com/issues/76354 Signed-off-by: Jaya Prakash --- diff --git a/src/blk/kernel/KernelDevice.cc b/src/blk/kernel/KernelDevice.cc index 9d661304407b..c43e9f57e5c0 100644 --- a/src/blk/kernel/KernelDevice.cc +++ b/src/blk/kernel/KernelDevice.cc @@ -304,7 +304,7 @@ int KernelDevice::open(const string& p) goto out_fail; } - if (size > 0) { + if (size >= block_size) { r = _aio_start(); if (r < 0) { goto out_fail;