From: Luis Henriques Date: Thu, 12 Nov 2020 11:25:32 +0000 (+0000) Subject: ceph: downgrade warning from mdsmap decode to debug X-Git-Tag: v5.15~2135^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccd1acdf1c49b835504b235461fd24e2ed826764;p=platform%2Fkernel%2Flinux-starfive.git ceph: downgrade warning from mdsmap decode to debug While the MDS cluster is unstable and changing state the client may get mdsmap updates that will trigger warnings: [144692.478400] ceph: mdsmap_decode got incorrect state(up:standby-replay) [144697.489552] ceph: mdsmap_decode got incorrect state(up:standby-replay) [144697.489580] ceph: mdsmap_decode got incorrect state(up:standby-replay) This patch downgrades these warnings to debug, as they may flood the logs if the cluster is unstable for a while. Signed-off-by: Luis Henriques Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/mdsmap.c b/fs/ceph/mdsmap.c index e4aba6c..1096d1d 100644 --- a/fs/ceph/mdsmap.c +++ b/fs/ceph/mdsmap.c @@ -243,8 +243,8 @@ struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end) } if (state <= 0) { - pr_warn("mdsmap_decode got incorrect state(%s)\n", - ceph_mds_state_name(state)); + dout("mdsmap_decode got incorrect state(%s)\n", + ceph_mds_state_name(state)); continue; }