Skip to contentSkip to conversation

target: stash sess_err_stats on Data-Out timeout

PATCH In review David Disseldorp 1 participant 1 message Oct 12, 2018 SCSI target

lore
Share & tools
lore
#0 lore raw

PATCH v2 5/5 target: stash sess_err_stats on Data-Out timeout

sess_err_stats are currently filled on NOP ping timeout, but not Data-Out timeout. Stash details of Data-Out timeouts using a ISCSI_SESS_ERR_CXN_TIMEOUT value for last_sess_failure_type.

---
 drivers/target/iscsi/iscsi_target_erl1.c | 1 +
 1 file changed, 1 insertion(+)
drivers/target/iscsi/iscsi_target_erl1.c +1 -0
index 7f3a1a06696e..a211e8154f4c 100644
@@ -1230,6 +1230,7 @@ void iscsit_handle_dataout_timeout(struct timer_list *t)
 
 failure:
 	spin_unlock_bh(&cmd->dataout_timeout_lock);
+	iscsit_fill_cxn_timeout_err_stats(sess);
 	iscsit_cause_connection_reinstatement(conn, 0);
 	iscsit_dec_conn_usage_count(conn);
 }
Signature · 1 line
2.13.7