diff mbox series

ceph: print the client global id when blocklisting the sessions

Message ID 20230608031359.48134-1-xiubli@redhat.com (mailing list archive)
State New, archived
Headers show
Series ceph: print the client global id when blocklisting the sessions | expand

Commit Message

Xiubo Li June 8, 2023, 3:13 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

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
Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
 fs/ceph/mds_client.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 0a70a2438cb2..c808270a2f5d 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -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;
 		}
 	}