@@ -1104,6 +1104,18 @@ void iscsit_handle_dataout_timeout(struct timer_list *t)
1104
1104
1105
1105
iscsit_inc_conn_usage_count (conn );
1106
1106
1107
+ /*
1108
+ * If the command was aborted, for instance following a LUN RESET,
1109
+ * a dataout timeout might be normal.
1110
+ */
1111
+ if (target_cmd_interrupted (& cmd -> se_cmd )) {
1112
+ pr_debug ("DataOut timeout on interrupted cmd with"
1113
+ " ITT[0x%08llx]\n" , cmd -> se_cmd .tag );
1114
+ cmd -> dataout_timer_flags &= ~ISCSI_TF_RUNNING ;
1115
+ iscsit_dec_conn_usage_count (conn );
1116
+ return ;
1117
+ }
1118
+
1107
1119
spin_lock_bh (& cmd -> dataout_timeout_lock );
1108
1120
if (cmd -> dataout_timer_flags & ISCSI_TF_STOP ) {
1109
1121
spin_unlock_bh (& cmd -> dataout_timeout_lock );
@@ -1117,19 +1129,22 @@ void iscsit_handle_dataout_timeout(struct timer_list *t)
1117
1129
if (!sess -> sess_ops -> ErrorRecoveryLevel ) {
1118
1130
pr_err ("Unable to recover from DataOut timeout while"
1119
1131
" in ERL=0, closing iSCSI connection for I_T Nexus"
1120
- " %s,i,0x%6phN,%s,t,0x%02x\n" ,
1132
+ " %s,i,0x%6phN,%s,t,0x%02x, cmd ITT[0x%08llx] \n" ,
1121
1133
sess -> sess_ops -> InitiatorName , sess -> isid ,
1122
- sess -> tpg -> tpg_tiqn -> tiqn , (u32 )sess -> tpg -> tpgt );
1134
+ sess -> tpg -> tpg_tiqn -> tiqn , (u32 )sess -> tpg -> tpgt ,
1135
+ cmd -> se_cmd .tag );
1123
1136
goto failure ;
1124
1137
}
1125
1138
1126
1139
if (++ cmd -> dataout_timeout_retries == na -> dataout_timeout_retries ) {
1127
1140
pr_err ("Command ITT: 0x%08x exceeded max retries"
1128
1141
" for DataOUT timeout %u, closing iSCSI connection for"
1129
- " I_T Nexus %s,i,0x%6phN,%s,t,0x%02x\n" ,
1142
+ " I_T Nexus %s,i,0x%6phN,%s,t,0x%02x,"
1143
+ " cmd ITT[0x%08llx]\n" ,
1130
1144
cmd -> init_task_tag , na -> dataout_timeout_retries ,
1131
1145
sess -> sess_ops -> InitiatorName , sess -> isid ,
1132
- sess -> tpg -> tpg_tiqn -> tiqn , (u32 )sess -> tpg -> tpgt );
1146
+ sess -> tpg -> tpg_tiqn -> tiqn , (u32 )sess -> tpg -> tpgt ,
1147
+ cmd -> se_cmd .tag );
1133
1148
goto failure ;
1134
1149
}
1135
1150
0 commit comments