ceph/src/blk
Kefu Chai 743b5bda65 blk/kernel: retry forever if bdev_flock_retry is 0
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
ee0b9e721a/src/shared/lockfile-util.c (L18)
so, we just need to retry couple times before acquiring the
lock.

Fixes: https://tracker.ceph.com/issues/46124
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-09-21 20:32:32 +08:00
..
aio
kernel blk/kernel: retry forever if bdev_flock_retry is 0 2020-09-21 20:32:32 +08:00
pmem
spdk
zoned os/bluestore: Switch from libzbc library to libzbd library 2020-09-06 12:35:05 -04:00
BlockDevice.cc os/bluestore: Switch from libzbc library to libzbd library 2020-09-06 12:35:05 -04:00
BlockDevice.h os/bluestore: Switch from libzbc library to libzbd library 2020-09-06 12:35:05 -04:00
CMakeLists.txt cmake: add "WITH_ZBD" option 2020-09-06 12:35:05 -04:00