]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
blk/kernel : skip AIO thread for zero-sized devices 62009/head
authorJaya Prakash <jayaprakash@ibm.com>
Wed, 26 Feb 2025 14:02:59 +0000 (19:32 +0530)
committerJaya Prakash <jayaprakash@ibm.com>
Thu, 27 Feb 2025 10:33:40 +0000 (16:03 +0530)
commit481dfb15e4675eecacae401500a8e5c555948314
treeb241f3d93b8029f4c1801307b4b33e0a33457bfe
parent05ec90da5dffb1f2dc7849dcfd8eed2f5a53f2f1
blk/kernel : skip AIO thread for zero-sized devices

Sometimes devices can be 0-sized, where I/O is impossible.

This change skips _aio_start() in open() if the device size is 0. This avoids unnecessary AIO setup.

This issue was introduced in PR : https://github.com/ceph/ceph/pull/60791

Signed-off-by: Jaya Prakash <jayaprakash@ibm.com>
src/blk/kernel/KernelDevice.cc