Skip to content

Commit

Permalink
rbd: fix and add more debug logs
Browse files Browse the repository at this point in the history
Signed-off-by: Xiubo Li <xiubli@redhat.com>
  • Loading branch information
lxbsz committed Aug 30, 2021
1 parent bdc361a commit 70d6fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static int tcmu_rbd_rm_stale_entries_from_blacklist(struct tcmu_device *dev)

/* Try to remove all the stale blacklist entities */
darray_foreach(entry, blacklist_caches) {
tcmu_dev_info(dev, "removing addrs: {%s}\n", *entry);
tcmu_dev_info(dev, "removing blocklist entry: {%s}\n", *entry);
tcmu_rbd_rm_stale_entry_from_blacklist(dev, *entry);
}

Expand Down Expand Up @@ -990,7 +990,7 @@ static int tcmu_rbd_lock(struct tcmu_device *dev, uint16_t tag)
#endif

set_lock_tag:
tcmu_dev_warn(dev, "Acquired exclusive lock.\n");
tcmu_dev_info(dev, "Acquired exclusive lock.\n");
if (tag != TCMU_INVALID_LOCK_TAG)
ret = tcmu_rbd_set_lock_tag(dev, tag);

Expand Down Expand Up @@ -1258,6 +1258,7 @@ static void tcmu_rbd_close(struct tcmu_device *dev)
pthread_mutex_lock(&blacklist_caches_lock);
darray_append(blacklist_caches, state->addrs);
pthread_mutex_unlock(&blacklist_caches_lock);
tcmu_dev_info(dev, "appended blocklist entry: {%s}\n", state->addrs);
state->addrs = NULL;
}

Expand Down

0 comments on commit 70d6fae

Please sign in to comment.