From 5cd281a19650e4ce0e2909c52ca782f93ba8423b Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 1 Jul 2021 18:08:20 +0200 Subject: [PATCH] blk/kernel: reorganise and use fd in debug Signed-off-by: Willem Jan Withagen --- src/blk/kernel/KernelDevice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blk/kernel/KernelDevice.cc b/src/blk/kernel/KernelDevice.cc index 239d700e212..0592f571b8f 100644 --- a/src/blk/kernel/KernelDevice.cc +++ b/src/blk/kernel/KernelDevice.cc @@ -87,11 +87,11 @@ KernelDevice::KernelDevice(CephContext* cct, aio_callback_t cb, void *cbpriv, ai int KernelDevice::_lock() { - dout(10) << __func__ << " " << fd_directs[WRITE_LIFE_NOT_SET] << dendl; // When the block changes, systemd-udevd will open the block, // read some information and close it. Then a failure occurs here. // So we need to try again here. int fd = fd_directs[WRITE_LIFE_NOT_SET]; + dout(10) << __func__ << " fd=" << fd << dendl; uint64_t nr_tries = 0; for (;;) { struct flock fl = { .l_type = F_WRLCK, -- 2.39.5