Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] ibmvscsi: fix timeout bugs

The viosrp_crq timeout field is in seconds.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Santiago Leon <santil@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by

FUJITA Tomonori and committed by
James Bottomley
33874a00 24f02e1d

+5 -5
+5 -5
drivers/scsi/ibmvscsi/ibmvscsi.c
··· 858 858 init_event_struct(evt_struct, 859 859 adapter_info_rsp, 860 860 VIOSRP_MAD_FORMAT, 861 - init_timeout * HZ); 861 + init_timeout); 862 862 863 863 req = &evt_struct->iu.mad.adapter_info; 864 864 memset(req, 0x00, sizeof(*req)); ··· 953 953 init_event_struct(evt_struct, 954 954 login_rsp, 955 955 VIOSRP_SRP_FORMAT, 956 - init_timeout * HZ); 956 + init_timeout); 957 957 958 958 login = &evt_struct->iu.srp.login_req; 959 959 memset(login, 0x00, sizeof(struct srp_login_req)); ··· 1031 1031 init_event_struct(evt, 1032 1032 sync_completion, 1033 1033 VIOSRP_SRP_FORMAT, 1034 - init_timeout * HZ); 1034 + init_timeout); 1035 1035 1036 1036 tsk_mgmt = &evt->iu.srp.tsk_mgmt; 1037 1037 ··· 1140 1140 init_event_struct(evt, 1141 1141 sync_completion, 1142 1142 VIOSRP_SRP_FORMAT, 1143 - init_timeout * HZ); 1143 + init_timeout); 1144 1144 1145 1145 tsk_mgmt = &evt->iu.srp.tsk_mgmt; 1146 1146 ··· 1373 1373 init_event_struct(evt_struct, 1374 1374 sync_completion, 1375 1375 VIOSRP_MAD_FORMAT, 1376 - init_timeout * HZ); 1376 + init_timeout); 1377 1377 1378 1378 host_config = &evt_struct->iu.mad.host_config; 1379 1379