Skip to content

Commit 70d6fae

Browse files
committed
rbd: fix and add more debug logs
Signed-off-by: Xiubo Li <[email protected]>
1 parent bdc361a commit 70d6fae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rbd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static int tcmu_rbd_rm_stale_entries_from_blacklist(struct tcmu_device *dev)
353353

354354
/* Try to remove all the stale blacklist entities */
355355
darray_foreach(entry, blacklist_caches) {
356-
tcmu_dev_info(dev, "removing addrs: {%s}\n", *entry);
356+
tcmu_dev_info(dev, "removing blocklist entry: {%s}\n", *entry);
357357
tcmu_rbd_rm_stale_entry_from_blacklist(dev, *entry);
358358
}
359359

@@ -990,7 +990,7 @@ static int tcmu_rbd_lock(struct tcmu_device *dev, uint16_t tag)
990990
#endif
991991

992992
set_lock_tag:
993-
tcmu_dev_warn(dev, "Acquired exclusive lock.\n");
993+
tcmu_dev_info(dev, "Acquired exclusive lock.\n");
994994
if (tag != TCMU_INVALID_LOCK_TAG)
995995
ret = tcmu_rbd_set_lock_tag(dev, tag);
996996

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

0 commit comments

Comments
 (0)