]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: detect rotational media under dm-crypt for workqueue bypass 69105/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 27 May 2026 07:41:13 +0000 (09:41 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 27 May 2026 07:41:25 +0000 (09:41 +0200)
commit08de2ed3e26820fb0298309ea2afd260543e6ecb
treef9e7511accb690bb146a18baeafbc1bf1996ffd2
parentab49b3aab85290987eac287a0c7bd89c8d287839
ceph-volume: detect rotational media under dm-crypt for workqueue bypass

bypass_workqueue() was inspecting the top level block device
(e.g: /dev/mapper/*) when deciding whether to disable read/write
workqueues for nvme devices, it must look at the real disk under
dmcrypt/lvm, not the mapper. On osd block paths the top device
often lies about rotational, so --perf-no_workqueue was wrong.

The idea of this fix is to walk sysfs 'slaves/' to the leaf, then
check rotational there (udev + rota).

Fixes: https://tracker.ceph.com/issues/76805
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/tests/util/test_encryption.py
src/ceph-volume/ceph_volume/util/disk.py
src/ceph-volume/ceph_volume/util/encryption.py