]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: detect rotational media under dm-crypt for workqueue bypass
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 5 May 2026 07:02:33 +0000 (09:02 +0200)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 14:12:50 +0000 (14:12 +0000)
commit21a98b1405cc45dddd66f389b8f511c576f6451f
tree7d08c24b00134a29576b0e4be9d87f1ac9bc2529
parent1649f5665b00d6d7ae7bd095c920d77868f32994
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/util/disk.py
src/ceph-volume/ceph_volume/util/encryption.py