[lustre-devel] [PATCH 05/25] lustre: mount: improve mount/unmount messages

James Simmons <[email protected]> Thu, 30 Jan 2025 09:10:55 -0500
Newsgroups org.lustre.lists.lustre-devel
Message-ID <[email protected]>
From: Andreas Dilger <[email protected]>

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 <[email protected]>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50511
Reviewed-by: Arshad Hussain <[email protected]>
Reviewed-by: Olaf Faaland <[email protected]>
Reviewed-by: Oleg Drokin <[email protected]>
Signed-off-by: James Simmons <[email protected]>
---
 fs/lustre/obdclass/obd_config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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;
-- 
2.39.3

_______________________________________________
lustre-devel mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org