Commit 33874a00 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

[SCSI] ibmvscsi: fix timeout bugs

The viosrp_crq timeout field is in seconds.
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Santiago Leon <santil@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 24f02e1d
...@@ -858,7 +858,7 @@ static void send_mad_adapter_info(struct ibmvscsi_host_data *hostdata) ...@@ -858,7 +858,7 @@ static void send_mad_adapter_info(struct ibmvscsi_host_data *hostdata)
init_event_struct(evt_struct, init_event_struct(evt_struct,
adapter_info_rsp, adapter_info_rsp,
VIOSRP_MAD_FORMAT, VIOSRP_MAD_FORMAT,
init_timeout * HZ); init_timeout);
req = &evt_struct->iu.mad.adapter_info; req = &evt_struct->iu.mad.adapter_info;
memset(req, 0x00, sizeof(*req)); memset(req, 0x00, sizeof(*req));
...@@ -953,7 +953,7 @@ static int send_srp_login(struct ibmvscsi_host_data *hostdata) ...@@ -953,7 +953,7 @@ static int send_srp_login(struct ibmvscsi_host_data *hostdata)
init_event_struct(evt_struct, init_event_struct(evt_struct,
login_rsp, login_rsp,
VIOSRP_SRP_FORMAT, VIOSRP_SRP_FORMAT,
init_timeout * HZ); init_timeout);
login = &evt_struct->iu.srp.login_req; login = &evt_struct->iu.srp.login_req;
memset(login, 0x00, sizeof(struct srp_login_req)); memset(login, 0x00, sizeof(struct srp_login_req));
...@@ -1031,7 +1031,7 @@ static int ibmvscsi_eh_abort_handler(struct scsi_cmnd *cmd) ...@@ -1031,7 +1031,7 @@ static int ibmvscsi_eh_abort_handler(struct scsi_cmnd *cmd)
init_event_struct(evt, init_event_struct(evt,
sync_completion, sync_completion,
VIOSRP_SRP_FORMAT, VIOSRP_SRP_FORMAT,
init_timeout * HZ); init_timeout);
tsk_mgmt = &evt->iu.srp.tsk_mgmt; tsk_mgmt = &evt->iu.srp.tsk_mgmt;
...@@ -1140,7 +1140,7 @@ static int ibmvscsi_eh_device_reset_handler(struct scsi_cmnd *cmd) ...@@ -1140,7 +1140,7 @@ static int ibmvscsi_eh_device_reset_handler(struct scsi_cmnd *cmd)
init_event_struct(evt, init_event_struct(evt,
sync_completion, sync_completion,
VIOSRP_SRP_FORMAT, VIOSRP_SRP_FORMAT,
init_timeout * HZ); init_timeout);
tsk_mgmt = &evt->iu.srp.tsk_mgmt; tsk_mgmt = &evt->iu.srp.tsk_mgmt;
...@@ -1373,7 +1373,7 @@ static int ibmvscsi_do_host_config(struct ibmvscsi_host_data *hostdata, ...@@ -1373,7 +1373,7 @@ static int ibmvscsi_do_host_config(struct ibmvscsi_host_data *hostdata,
init_event_struct(evt_struct, init_event_struct(evt_struct,
sync_completion, sync_completion,
VIOSRP_MAD_FORMAT, VIOSRP_MAD_FORMAT,
init_timeout * HZ); init_timeout);
host_config = &evt_struct->iu.mad.host_config; host_config = &evt_struct->iu.mad.host_config;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment