Whamcloud - gitweb
LU-7486 obdclass: health_check to report unhealthy upon LBUG
[fs/lustre-release.git] / 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;
 
        bool healthy = true;
        int i;
 
-       if (libcfs_catastrophe)
+       if (libcfs_catastrophe) {
                seq_printf(m, "LBUG\n");
                seq_printf(m, "LBUG\n");
+               healthy = false;
+       }
 
        read_lock(&obd_dev_lock);
        for (i = 0; i < class_devno_max(); i++) {
 
        read_lock(&obd_dev_lock);
        for (i = 0; i < class_devno_max(); i++) {