Commit 04060db
scsi: RDMA/isert: Fix a recently introduced regression related to logout
iscsit_close_connection() calls isert_wait_conn(). Due to commit
e9d3009 both functions call target_wait_for_sess_cmds() although that
last function should be called only once. Fix this by removing the
target_wait_for_sess_cmds() call from isert_wait_conn() and by only calling
isert_wait_conn() after target_wait_for_sess_cmds().
Fixes: e9d3009 ("scsi: target: iscsi: Wait for all commands to finish before freeing a session").
Link: https://lore.kernel.org/r/20200116044737.19507-1-bvanassche@acm.org
Reported-by: Rahul Kundu <rahul.kundu@chelsio.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 0e22096 commit 04060db
2 files changed
Lines changed: 3 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2575 | 2575 | | |
2576 | 2576 | | |
2577 | 2577 | | |
2578 | | - | |
2579 | | - | |
2580 | | - | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
2587 | | - | |
2588 | | - | |
2589 | 2578 | | |
2590 | 2579 | | |
2591 | 2580 | | |
| |||
2633 | 2622 | | |
2634 | 2623 | | |
2635 | 2624 | | |
2636 | | - | |
2637 | 2625 | | |
2638 | 2626 | | |
2639 | 2627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4149 | 4149 | | |
4150 | 4150 | | |
4151 | 4151 | | |
4152 | | - | |
4153 | | - | |
4154 | | - | |
4155 | 4152 | | |
4156 | 4153 | | |
4157 | 4154 | | |
| |||
4237 | 4234 | | |
4238 | 4235 | | |
4239 | 4236 | | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
4240 | 4240 | | |
4241 | 4241 | | |
4242 | 4242 | | |
| |||
0 commit comments