diff mbox series

[05/25] lustre: mount: improve mount/unmount messages

Message ID 20250130141115.950749-6-jsimmons@infradead.org (mailing list archive)
State New
Headers show
Series lustre: sync to OpenSFS branch April 30, 2023 | expand

Commit Message

James Simmons Jan. 30, 2025, 2:10 p.m. UTC
From: Andreas Dilger <adilger@whamcloud.com>

In some cases, unmount errors are printed in multiple places, or
are expected so printing them on the console log is not necessary.

Conversely, some status messages such as mounting or unmounting the
whole target should not be rate limited.

WC-bug-id: https://jira.whamcloud.com/browse/LU-980
Lustre-commit: cba8c65b384f92d269 ("LU-980 mount: improve mount/unmount messages")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50511
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 fs/lustre/obdclass/obd_config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/lustre/obdclass/obd_config.c b/fs/lustre/obdclass/obd_config.c
index cc7810cae659..689e8f54084d 100644
--- a/fs/lustre/obdclass/obd_config.c
+++ b/fs/lustre/obdclass/obd_config.c
@@ -507,8 +507,8 @@  static int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg)
 				obd->obd_force = 1;
 				break;
 			case 'A':
-				LCONSOLE_WARN("Failing over %s\n",
-					      obd->obd_name);
+				LCONSOLE(D_WARNING, "Failing over %s\n",
+					 obd->obd_name);
 				spin_lock(&obd->obd_dev_lock);
 				obd->obd_fail = 1;
 				obd->obd_no_recov = 1;