Commit 2e9c74d
committed
smb: client: handle lack of IPC in dfs_cache_refresh()
JIRA: https://issues.redhat.com/browse/RHEL-126228
commit fac56c4
Author: Paulo Alcantara <pc@manguebit.org>
Date: Thu Oct 23 18:59:47 2025 -0300
smb: client: handle lack of IPC in dfs_cache_refresh()
In very rare cases, DFS mounts could end up with SMB sessions without
any IPC connections. These mounts are only possible when having
unexpired cached DFS referrals, hence not requiring any IPC
connections during the mount process.
Try to establish those missing IPC connections when refreshing DFS
referrals. If the server is still rejecting it, then simply ignore
and leave expired cached DFS referral for any potential DFS failovers.
Reported-by: Jay Shin <jaeshin@redhat.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Paulo Alcantara <paalcant@redhat.com>1 parent 520cc51 commit 2e9c74d
3 files changed
+66
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| 618 | + | |
| 619 | + | |
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
2018 | | - | |
2019 | | - | |
| 2018 | + | |
2020 | 2019 | | |
2021 | 2020 | | |
2022 | 2021 | | |
2023 | 2022 | | |
2024 | | - | |
2025 | | - | |
| 2023 | + | |
2026 | 2024 | | |
2027 | 2025 | | |
2028 | 2026 | | |
2029 | 2027 | | |
2030 | | - | |
2031 | 2028 | | |
2032 | 2029 | | |
2033 | 2030 | | |
2034 | 2031 | | |
2035 | 2032 | | |
2036 | 2033 | | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2045 | 2037 | | |
2046 | 2038 | | |
2047 | 2039 | | |
2048 | 2040 | | |
2049 | 2041 | | |
2050 | | - | |
| 2042 | + | |
2051 | 2043 | | |
2052 | 2044 | | |
2053 | 2045 | | |
| |||
2057 | 2049 | | |
2058 | 2050 | | |
2059 | 2051 | | |
2060 | | - | |
| 2052 | + | |
2061 | 2053 | | |
2062 | 2054 | | |
2063 | 2055 | | |
2064 | | - | |
| 2056 | + | |
2065 | 2057 | | |
2066 | | - | |
| 2058 | + | |
2067 | 2059 | | |
2068 | 2060 | | |
2069 | 2061 | | |
2070 | 2062 | | |
2071 | 2063 | | |
2072 | 2064 | | |
2073 | 2065 | | |
2074 | | - | |
2075 | | - | |
2076 | | - | |
| 2066 | + | |
2077 | 2067 | | |
2078 | 2068 | | |
2079 | 2069 | | |
| |||
2347 | 2337 | | |
2348 | 2338 | | |
2349 | 2339 | | |
| 2340 | + | |
2350 | 2341 | | |
2351 | 2342 | | |
2352 | 2343 | | |
| |||
2525 | 2516 | | |
2526 | 2517 | | |
2527 | 2518 | | |
2528 | | - | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
2529 | 2525 | | |
2530 | 2526 | | |
2531 | 2527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | | - | |
| 1123 | + | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
| 1126 | + | |
1127 | 1127 | | |
1128 | 1128 | | |
| 1129 | + | |
1129 | 1130 | | |
1130 | 1131 | | |
| 1132 | + | |
1131 | 1133 | | |
1132 | | - | |
1133 | | - | |
| 1134 | + | |
| 1135 | + | |
1134 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1135 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1136 | 1175 | | |
1137 | 1176 | | |
1138 | 1177 | | |
1139 | 1178 | | |
1140 | | - | |
| 1179 | + | |
1141 | 1180 | | |
1142 | 1181 | | |
1143 | 1182 | | |
| |||
1153 | 1192 | | |
1154 | 1193 | | |
1155 | 1194 | | |
1156 | | - | |
| 1195 | + | |
1157 | 1196 | | |
1158 | 1197 | | |
1159 | 1198 | | |
| |||
1241 | 1280 | | |
1242 | 1281 | | |
1243 | 1282 | | |
1244 | | - | |
| 1283 | + | |
1245 | 1284 | | |
1246 | 1285 | | |
1247 | 1286 | | |
| |||
1309 | 1348 | | |
1310 | 1349 | | |
1311 | 1350 | | |
1312 | | - | |
| 1351 | + | |
1313 | 1352 | | |
1314 | 1353 | | |
1315 | 1354 | | |
| |||
0 commit comments