git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afs: restore force_if_down check when getting connections
[openafs.git]
/
src
/
afs
/
afs_conn.c
diff --git
a/src/afs/afs_conn.c
b/src/afs/afs_conn.c
index
be6ab2b
..
56515c8
100644
(file)
--- a/
src/afs/afs_conn.c
+++ b/
src/afs/afs_conn.c
@@
-393,6
+393,11
@@
afs_ConnBySA(struct srvAddr *sap, unsigned short aport, afs_int32 acell,
*rxconn = NULL;
+ if (!sap || ((sap->sa_flags & SRVR_ISDOWN) && !force_if_down)) {
+ /* sa is known down, and we don't want to force it. */
+ return NULL;
+ }
+
/* find cached connection */
ObtainSharedLock(&afs_xconn, 15);
foundvec = 0;