Skip to contentSkip to conversation

ceph: print the client global id when blocklisting the sessions

PATCH New [email protected] 1 participant 1 message Jun 8, 2023 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: print the client global id when blocklisting the sessions

From: Xiubo Li <[email protected]>

Multiple cephfs mounts on a host is increasingly common so disambiguating messages like this is necessary and will make it easier to debug issues.

URL: https://tracker.ceph.com/issues/61590

---
 fs/ceph/mds_client.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/ceph/mds_client.c +3 -1
index 0a70a2438cb2..c808270a2f5d 100644
@@ -3978,7 +3978,9 @@ static void handle_session(struct ceph_mds_session *session,
 		/* version >= 5, flags   */
 		ceph_decode_32_safe(&p, end, flags, bad);
 		if (flags & CEPH_SESSION_BLOCKLISTED) {
-			pr_warn("mds%d session blocklisted\n", session->s_mds);
+			pr_warn("client.%lld mds%d session blocklisted\n",
+				mdsc->fsc->client->monc.auth->global_id,
+				session->s_mds);
 			blocklisted = true;
 		}
 	}
Signature · 1 line
2.40.1