From: Bruno Faccini Date: Wed, 13 Jan 2016 16:25:52 +0000 (+0100) Subject: LU-7486 obdclass: health_check to report unhealthy upon LBUG X-Git-Tag: 2.8.55~47 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=909e4dc00f224834ff7ac4b6b8f0f6bf76e3c58d;hp=64eb02ffed4afe067eb090b5cb06a91f0d6fd1a9 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 --- 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++) {