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-13427 lmv: do not print MDTs that are inactive
[fs/lustre-release.git]
/
lustre
/
lmv
/
lmv_obd.c
diff --git
a/lustre/lmv/lmv_obd.c
b/lustre/lmv/lmv_obd.c
index
37d341d
..
062a44a
100644
(file)
--- a/
lustre/lmv/lmv_obd.c
+++ b/
lustre/lmv/lmv_obd.c
@@
-837,7
+837,10
@@
static int lmv_iocontrol(unsigned int cmd, struct obd_export *exp,
RETURN(-ENODEV);
tgt = lmv_tgt(lmv, index);
- if (!tgt || !tgt->ltd_active)
+ if (!tgt)
+ RETURN(-EAGAIN);
+
+ if (!tgt->ltd_active)
RETURN(-ENODATA);
mdc_obd = class_exp2obd(tgt->ltd_exp);