From 71db233ddcb36685f66905a1d239f56ca835b2b2 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 7 Dec 2005 09:38:06 +0000 Subject: [PATCH] b=9446 - don't check health of devices being stopped --- lustre/obdclass/class_obd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index 2ac6c5d..f684cea 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -474,6 +474,9 @@ static int obd_proc_read_health(char *page, char **start, off_t off, if (obd->obd_type == NULL) continue; + if (obd->obd_stopping) + continue; + atomic_inc(&obd->obd_refcount); spin_unlock(&obd_dev_lock); -- 1.8.3.1