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-14161 obdclass: fix some problems with obd_nid_hash
[fs/lustre-release.git]
/
lustre
/
obdclass
/
obd_config.c
diff --git
a/lustre/obdclass/obd_config.c
b/lustre/obdclass/obd_config.c
index
10000ce
..
bf86016
100644
(file)
--- a/
lustre/obdclass/obd_config.c
+++ b/
lustre/obdclass/obd_config.c
@@
-173,7
+173,7
@@
nid_keycmp(struct rhashtable_compare_arg *arg, const void *obj)
const lnet_nid_t *nid = arg->key;
const struct obd_export *exp = obj;
const lnet_nid_t *nid = arg->key;
const struct obd_export *exp = obj;
- if (exp->exp_connection->c_peer.nid == *nid
&& !exp->exp_failed
)
+ if (exp->exp_connection->c_peer.nid == *nid)
return 0;
return -ESRCH;
return 0;
return -ESRCH;
@@
-250,7
+250,7
@@
int obd_nid_export_for_each(struct obd_device *obd, lnet_nid_t nid,
}
rhl_for_each_entry_rcu(exp, tmp, exports, exp_nid_hash) {
}
rhl_for_each_entry_rcu(exp, tmp, exports, exp_nid_hash) {
- if (cb(exp, data))
+ if (
!exp->exp_failed &&
cb(exp, data))
ret++;
}
ret++;
}