Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-15873 obd: skip checking read-only fs health
[fs/lustre-release.git]
/
lustre
/
obdclass
/
obd_sysfs.c
diff --git
a/lustre/obdclass/obd_sysfs.c
b/lustre/obdclass/obd_sysfs.c
index
5d9430a
..
b293e06
100644
(file)
--- a/
lustre/obdclass/obd_sysfs.c
+++ b/
lustre/obdclass/obd_sysfs.c
@@
-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);