Commit caa0ac9
committed
smb: client: handle lack of IPC in dfs_cache_refresh()
JIRA: https://issues.redhat.com/browse/RHEL-119582
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 ec5f4d3 commit caa0ac9
3 files changed
+66
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
603 | 605 | | |
604 | 606 | | |
605 | 607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2017 | 2017 | | |
2018 | 2018 | | |
2019 | 2019 | | |
2020 | | - | |
2021 | | - | |
| 2020 | + | |
2022 | 2021 | | |
2023 | 2022 | | |
2024 | 2023 | | |
2025 | 2024 | | |
2026 | | - | |
2027 | | - | |
| 2025 | + | |
2028 | 2026 | | |
2029 | 2027 | | |
2030 | 2028 | | |
2031 | 2029 | | |
2032 | | - | |
2033 | 2030 | | |
2034 | 2031 | | |
2035 | 2032 | | |
2036 | 2033 | | |
2037 | 2034 | | |
2038 | 2035 | | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
2047 | 2039 | | |
2048 | 2040 | | |
2049 | 2041 | | |
2050 | 2042 | | |
2051 | 2043 | | |
2052 | | - | |
| 2044 | + | |
2053 | 2045 | | |
2054 | 2046 | | |
2055 | 2047 | | |
| |||
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 | 2066 | | |
2075 | 2067 | | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
| 2068 | + | |
2079 | 2069 | | |
2080 | 2070 | | |
2081 | 2071 | | |
| |||
2349 | 2339 | | |
2350 | 2340 | | |
2351 | 2341 | | |
| 2342 | + | |
2352 | 2343 | | |
2353 | 2344 | | |
2354 | 2345 | | |
| |||
2527 | 2518 | | |
2528 | 2519 | | |
2529 | 2520 | | |
2530 | | - | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
2531 | 2527 | | |
2532 | 2528 | | |
2533 | 2529 | | |
| |||
| 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