Whamcloud - gitweb
LU-7486 obdclass: health_check to report unhealthy upon LBUG 81/17981/2
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 13 Jan 2016 16:25:52 +0000 (17:25 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:50:42 +0000 (03:50 +0000)
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 <bruno.faccini@intel.com>
Change-Id: I3fb89fe825cb3e85f2be99609141131aef6b6af7
Reviewed-on: http://review.whamcloud.com/17981
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/linux/linux-module.c

index fbe459f..37cbd24 100644 (file)
@@ -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++) {