Whamcloud - gitweb
LU-15873 obd: skip checking read-only fs health
[fs/lustre-release.git] / lustre / obdclass / obd_sysfs.c
index 5d9430a..b293e06 100644 (file)
@@ -252,6 +252,9 @@ health_check_show(struct kobject *kobj, struct attribute *attr, char *buf)
                if (obd->obd_stopping)
                        continue;
 
+               if (obd->obd_read_only)
+                       continue;
+
                class_incref(obd, __func__, current);
                read_unlock(&obd_dev_lock);