Commit ccd1acdf authored by Luis Henriques's avatar Luis Henriques Committed by Ilya Dryomov
Browse files

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: default avatarLuis Henriques <lhenriques@suse.de>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent e5cafce3
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -243,7 +243,7 @@ struct ceph_mdsmap *ceph_mdsmap_decode(void **p, void *end)
		}
		}


		if (state <= 0) {
		if (state <= 0) {
			pr_warn("mdsmap_decode got incorrect state(%s)\n",
			dout("mdsmap_decode got incorrect state(%s)\n",
			     ceph_mds_state_name(state));
			     ceph_mds_state_name(state));
			continue;
			continue;
		}
		}