mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
[SCSI] libiscsi: fix nop handling
During root boot and shutdown the target could send us nops. At this time iscsid cannot be running, so the target will drop the session and the boot or shutdown will hang. To handle this and allow us to better control when to check the network this patch moves the nop handling to the kernel. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
2697478903
commit
f6d5180c78
6 changed files with 294 additions and 68 deletions
|
@ -148,6 +148,12 @@ struct iscsi_conn {
|
|||
* conn_stop() flag: stop to recover, stop to terminate
|
||||
*/
|
||||
int stop_stage;
|
||||
struct timer_list transport_timer;
|
||||
unsigned long last_recv;
|
||||
unsigned long last_ping;
|
||||
int ping_timeout;
|
||||
int recv_timeout;
|
||||
struct iscsi_mgmt_task *ping_mtask;
|
||||
|
||||
/* iSCSI connection-wide sequencing */
|
||||
uint32_t exp_statsn;
|
||||
|
@ -238,6 +244,8 @@ struct iscsi_session {
|
|||
uint32_t queued_cmdsn;
|
||||
|
||||
/* configuration */
|
||||
int abort_timeout;
|
||||
int lu_reset_timeout;
|
||||
int initial_r2t_en;
|
||||
unsigned max_r2t;
|
||||
int imm_data_en;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue