This is bizarre and I'm not 100% sure I have a true reproducer (see TBD attachment).
Basically: run losetup, use bfq scheduler on it, and future losetup commands cause "losetup -l" to emit no output.
Confirmed on kernels:
6.4.0-0.rc7.20230623git8a28a0b6f1a1.57.fc39.x86_64
6.5.0-0.rc2.20230721gitf7e3a1bafdea.20.fc39.x86_64
Reproducible: Always
Originally found via:
# dnf install podman-tests
# bats /usr/share/podman/test/system/180-blkio.bats
[works the first time, but gets skipped because /sys/fs/cgroup/blkio/system.slice/blkio.bfq.weight_device is missing ]
# !!
[ this time it fails because 'losetup -l' emits no output]