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;
}
rhl_for_each_entry_rcu(exp, tmp, exports, exp_nid_hash) {
- if (cb(exp, data))
+ if (!exp->exp_failed && cb(exp, data))
ret++;
}