]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
blk/kernel: reorganise and use fd in debug
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 1 Jul 2021 16:08:20 +0000 (18:08 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Jul 2021 09:50:00 +0000 (11:50 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/blk/kernel/KernelDevice.cc

index 239d700e212be9ea7080b7dcda68817802f35b4a..0592f571b8f406bfd1f9d155c234d5c886aa6fba 100644 (file)
@@ -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,