File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 26
26
#include <target/target_core_base.h>
27
27
#include <target/target_core_fabric.h>
28
28
29
+ #include <target/target_core_backend.h>
29
30
#include <target/iscsi/iscsi_target_core.h>
30
31
#include "iscsi_target_parameters.h"
31
32
#include "iscsi_target_seq_pdu_list.h"
@@ -4104,6 +4105,16 @@ static void iscsit_release_commands_from_conn(struct iscsi_conn *conn)
4104
4105
} else {
4105
4106
se_cmd -> transport_state |= CMD_T_FABRIC_STOP ;
4106
4107
}
4108
+
4109
+ if (cmd -> se_cmd .t_state == TRANSPORT_WRITE_PENDING ) {
4110
+ /*
4111
+ * We never submitted the cmd to LIO core, so we have
4112
+ * to tell LIO to perform the completion process.
4113
+ */
4114
+ spin_unlock_irq (& se_cmd -> t_state_lock );
4115
+ target_complete_cmd (& cmd -> se_cmd , SAM_STAT_TASK_ABORTED );
4116
+ continue ;
4117
+ }
4107
4118
spin_unlock_irq (& se_cmd -> t_state_lock );
4108
4119
}
4109
4120
spin_unlock_bh (& conn -> cmd_lock );
You can’t perform that action at this time.
0 commit comments