mirror of
https://github.com/ceph/ceph
synced 2025-01-17 16:34:22 +00:00
743b5bda65
retry forever if cct->_conf->bdev_flock_retry is 0.
systemd-udevd is most likely the reason why ceph-osd fails to
acquire the flock when "mkfs", because systemd-udevd probes
all block devices when the device changes in the system using
libblkid, and when systemd-udevd starts looking at the device
it takes a `LOCK_SH|LOCK_NB` lock. and it releases the lock
right after done with it. so normally, it only takes a jiffy,
see
|
||
---|---|---|
.. | ||
aio | ||
kernel | ||
pmem | ||
spdk | ||
zoned | ||
BlockDevice.cc | ||
BlockDevice.h | ||
CMakeLists.txt |