[SCSI] iscsi bugfixes: send correct error values to userspace
In the xmit patch we are sending a -EXXX value to iscsi_conn_failure which is causing userspace to get confused. We should be sending a ISCSI_ERR_* value that userspace understands. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
8d4fbd3f97
commit
d82967c706
|
@ -843,7 +843,7 @@ more:
|
||||||
if (rc == -EAGAIN)
|
if (rc == -EAGAIN)
|
||||||
goto nomore;
|
goto nomore;
|
||||||
else {
|
else {
|
||||||
iscsi_conn_failure(conn, rc);
|
iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -859,7 +859,7 @@ more:
|
||||||
}
|
}
|
||||||
tcp_conn->in_progress = IN_PROGRESS_DATA_RECV;
|
tcp_conn->in_progress = IN_PROGRESS_DATA_RECV;
|
||||||
} else if (rc) {
|
} else if (rc) {
|
||||||
iscsi_conn_failure(conn, rc);
|
iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -897,7 +897,7 @@ more:
|
||||||
if (rc) {
|
if (rc) {
|
||||||
if (rc == -EAGAIN)
|
if (rc == -EAGAIN)
|
||||||
goto again;
|
goto again;
|
||||||
iscsi_conn_failure(conn, rc);
|
iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
tcp_conn->in.copy -= tcp_conn->in.padding;
|
tcp_conn->in.copy -= tcp_conn->in.padding;
|
||||||
|
|
Reference in New Issue