File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -2575,6 +2575,17 @@ isert_wait4logout(struct isert_conn *isert_conn)
2575
2575
}
2576
2576
}
2577
2577
2578
+ static void
2579
+ isert_wait4cmds (struct iscsi_conn * conn )
2580
+ {
2581
+ isert_info ("iscsi_conn %p\n" , conn );
2582
+
2583
+ if (conn -> sess ) {
2584
+ target_sess_cmd_list_set_waiting (conn -> sess -> se_sess );
2585
+ target_wait_for_sess_cmds (conn -> sess -> se_sess );
2586
+ }
2587
+ }
2588
+
2578
2589
/**
2579
2590
* isert_put_unsol_pending_cmds() - Drop commands waiting for
2580
2591
* unsolicitate dataout
@@ -2622,6 +2633,7 @@ static void isert_wait_conn(struct iscsi_conn *conn)
2622
2633
2623
2634
ib_drain_qp (isert_conn -> qp );
2624
2635
isert_put_unsol_pending_cmds (conn );
2636
+ isert_wait4cmds (conn );
2625
2637
isert_wait4logout (isert_conn );
2626
2638
2627
2639
queue_work (isert_release_wq , & isert_conn -> release_work );
Original file line number Diff line number Diff line change @@ -4149,6 +4149,9 @@ int iscsit_close_connection(
4149
4149
iscsit_stop_nopin_response_timer (conn );
4150
4150
iscsit_stop_nopin_timer (conn );
4151
4151
4152
+ if (conn -> conn_transport -> iscsit_wait_conn )
4153
+ conn -> conn_transport -> iscsit_wait_conn (conn );
4154
+
4152
4155
/*
4153
4156
* During Connection recovery drop unacknowledged out of order
4154
4157
* commands for this connection, and prepare the other commands
@@ -4234,9 +4237,6 @@ int iscsit_close_connection(
4234
4237
target_sess_cmd_list_set_waiting (sess -> se_sess );
4235
4238
target_wait_for_sess_cmds (sess -> se_sess );
4236
4239
4237
- if (conn -> conn_transport -> iscsit_wait_conn )
4238
- conn -> conn_transport -> iscsit_wait_conn (conn );
4239
-
4240
4240
ahash_request_free (conn -> conn_tx_hash );
4241
4241
if (conn -> conn_rx_hash ) {
4242
4242
struct crypto_ahash * tfm ;
You can’t perform that action at this time.
0 commit comments