Commit 09ff742c62a6bbfca7aed485f44c8b16f52e1096
Committed by
Christoph Hellwig
1 parent
719e5874d0
Exists in
smarc_imx_lf-5.15.y
and in
32 other branches
libiscsi: return new error code when nop times out
When a iscsi nop as ping timedout we were failing with the common connection error code, ISCSI_ERR_CONN_FAILED. This patch adds a new error code for this problem so can properly track/distinguish in userspace. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Acked-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff
drivers/scsi/libiscsi.c
... | ... | @@ -2097,7 +2097,7 @@ |
2097 | 2097 | conn->ping_timeout, conn->recv_timeout, |
2098 | 2098 | last_recv, conn->last_ping, jiffies); |
2099 | 2099 | spin_unlock(&session->frwd_lock); |
2100 | - iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED); | |
2100 | + iscsi_conn_failure(conn, ISCSI_ERR_NOP_TIMEDOUT); | |
2101 | 2101 | return; |
2102 | 2102 | } |
2103 | 2103 |
include/scsi/iscsi_if.h