Repository navigation
Commit b2cb964
Nicholas Bellinger
iser-target: Fix session reset bug with RDMA_CM_EVENT_DISCONNECTED
This patch addresses a bug where RDMA_CM_EVENT_DISCONNECTED may occur
before the connection shutdown has been completed by rx/tx threads,
that causes isert_free_conn() to wait indefinately on ->conn_wait.
This patch allows isert_disconnect_work code to invoke rdma_disconnect
when isert_disconnect_work() process context is started by client
session reset before isert_free_conn() code has been reached.
It also adds isert_conn->conn_mutex protection for ->state within
isert_disconnect_work(), isert_cq_comp_err() and isert_free_conn()
code, along with isert_check_state() for wait_event usage.
(v2: Add explicit iscsit_cause_connection_reinstatement call
during isert_disconnect_work() to force conn reset)
Cc: stable@vger.kernel.org # 3.10+
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>1 parent 186a964 commit b2cb964
4 files changed
Lines changed: 66 additions & 10 deletions
File tree
- drivers
- infiniband/ulp/isert
- target/iscsi
- include/target/iscsi
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
543 | | - | |
| 544 | + | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
549 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
550 | 565 | | |
| 566 | + | |
551 | 567 | | |
| 568 | + | |
| 569 | + | |
552 | 570 | | |
553 | 571 | | |
554 | 572 | | |
| |||
1439 | 1457 | | |
1440 | 1458 | | |
1441 | 1459 | | |
1442 | | - | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1443 | 1465 | | |
1444 | 1466 | | |
1445 | 1467 | | |
| |||
2209 | 2231 | | |
2210 | 2232 | | |
2211 | 2233 | | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
2212 | 2245 | | |
2213 | 2246 | | |
2214 | 2247 | | |
| |||
2218 | 2251 | | |
2219 | 2252 | | |
2220 | 2253 | | |
| 2254 | + | |
2221 | 2255 | | |
2222 | 2256 | | |
2223 | 2257 | | |
2224 | | - | |
| 2258 | + | |
| 2259 | + | |
2225 | 2260 | | |
| 2261 | + | |
2226 | 2262 | | |
2227 | 2263 | | |
2228 | 2264 | | |
2229 | 2265 | | |
2230 | | - | |
| 2266 | + | |
2231 | 2267 | | |
2232 | 2268 | | |
| 2269 | + | |
| 2270 | + | |
2233 | 2271 | | |
2234 | | - | |
2235 | | - | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
2236 | 2284 | | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
2237 | 2288 | | |
2238 | | - | |
2239 | | - | |
2240 | | - | |
| 2289 | + | |
| 2290 | + | |
2241 | 2291 | | |
2242 | 2292 | | |
2243 | 2293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| 911 | + | |
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments