]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: detect rotational media under dm-crypt for workqueue bypass 69228/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 27 May 2026 07:41:13 +0000 (09:41 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 1 Jul 2026 21:02:42 +0000 (23:02 +0200)
commit47da8e8e792b1af2fa23c2c27f5d019876a03e3d
tree8be647bbfe6c06d2f10bb80c985e70d38e7ca9fa
parent5c4bf170edcddbf7acda74bdb1eeaeb430634e57
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>
(cherry picked from commit 08de2ed3e26820fb0298309ea2afd260543e6ecb)
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