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-17000 coverity: Fix Logically dead code under lnetctl.c
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
sec_config.c
diff --git
a/lustre/ptlrpc/sec_config.c
b/lustre/ptlrpc/sec_config.c
index
69596b5
..
19bea77
100644
(file)
--- a/
lustre/ptlrpc/sec_config.c
+++ b/
lustre/ptlrpc/sec_config.c
@@
-403,6
+403,10
@@
int sptlrpc_rule_set_choose(struct sptlrpc_rule_set *rset,
struct sptlrpc_rule *r;
int n;
+ if (nid_is_lo0(nid))
+ /* do not enforce any sec flavor on loopback connection */
+ return 0;
+
for (n = 0; n < rset->srs_nrule; n++) {
r = &rset->srs_rules[n];