From 909e4dc00f224834ff7ac4b6b8f0f6bf76e3c58d Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Wed, 13 Jan 2016 17:25:52 +0100 Subject: [PATCH] LU-7486 obdclass: health_check to report unhealthy upon LBUG When a LBUG has occured, without panic_on_lbug being set, health_check /proc file must return an unhealthy state. Signed-off-by: Bruno Faccini Change-Id: I3fb89fe825cb3e85f2be99609141131aef6b6af7 Reviewed-on: http://review.whamcloud.com/17981 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bobi Jam Reviewed-by: Niu Yawei Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/obdclass/linux/linux-module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/obdclass/linux/linux-module.c b/lustre/obdclass/linux/linux-module.c index fbe459f..37cbd24 100644 --- a/lustre/obdclass/linux/linux-module.c +++ b/lustre/obdclass/linux/linux-module.c @@ -245,8 +245,10 @@ static int obd_proc_health_seq_show(struct seq_file *m, void *data) bool healthy = true; int i; - if (libcfs_catastrophe) + if (libcfs_catastrophe) { seq_printf(m, "LBUG\n"); + healthy = false; + } read_lock(&obd_dev_lock); for (i = 0; i < class_devno_max(); i++) { -- 1.8.3.1