]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Feb 2021 18:11:32 +0000 (19:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Feb 2021 18:11:32 +0000 (19:11 +0100)
added patches:
ceph-downgrade-warning-from-mdsmap-decode-to-debug.patch

queue-5.10/ceph-downgrade-warning-from-mdsmap-decode-to-debug.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/ceph-downgrade-warning-from-mdsmap-decode-to-debug.patch b/queue-5.10/ceph-downgrade-warning-from-mdsmap-decode-to-debug.patch
new file mode 100644 (file)
index 0000000..cdc207e
--- /dev/null
@@ -0,0 +1,40 @@
+From ccd1acdf1c49b835504b235461fd24e2ed826764 Mon Sep 17 00:00:00 2001
+From: Luis Henriques <lhenriques@suse.de>
+Date: Thu, 12 Nov 2020 11:25:32 +0000
+Subject: ceph: downgrade warning from mdsmap decode to debug
+
+From: Luis Henriques <lhenriques@suse.de>
+
+commit ccd1acdf1c49b835504b235461fd24e2ed826764 upstream.
+
+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 <lhenriques@suse.de>
+Reviewed-by: Jeff Layton <jlayton@kernel.org>
+Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/ceph/mdsmap.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/fs/ceph/mdsmap.c
++++ b/fs/ceph/mdsmap.c
+@@ -243,8 +243,8 @@ struct ceph_mdsmap *ceph_mdsmap_decode(v
+               }
+               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;
+               }
index d4469c09567b01a1d2e4af3bc365b39635cd0a08..3ace385f2b2c6ab8c2232a04ace84dba56769a26 100644 (file)
@@ -4,3 +4,4 @@ rdma-lift-ibdev_to_node-from-rds-to-common-code.patch
 nvme-rdma-use-ibdev_to_node-instead-of-dereferencing-dma_device.patch
 usb-quirks-sort-quirk-entries.patch
 usb-quirks-add-quirk-to-start-video-capture-on-elmo-l-12f-document-camera-reliable.patch
+ceph-downgrade-warning-from-mdsmap-decode-to-debug.patch