aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-08-18 09:43:26 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 09:49:38 -0400
commit98fc4d5c8cd9bd1a412cca922feecb54c1c22d8e (patch)
treeba2985e12e493bad9a2d1b76476b9697f8aba7eb /drivers/s390/scsi/zfcp_def.h
parent347c6a965dc110c91a77f65181fc011ee257a4a6 (diff)
[SCSI] zfcp: Simplify and update ct/gs and els timeout handling
The recommendation for a timeout of 2 * R_A_TOV is the same for ct/gs and els requests, so set it in the common function used for initializing both request types. Besides, the timer inside zfcp should only run longer than the timeout set for the channel, so 10 seconds more should be enough (instead of 60 seconds). Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index ce65d88e280c..99830758e873 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -73,9 +73,6 @@
73 73
74/*************** FIBRE CHANNEL PROTOCOL SPECIFIC DEFINES ********************/ 74/*************** FIBRE CHANNEL PROTOCOL SPECIFIC DEFINES ********************/
75 75
76/* timeout for name-server lookup (in seconds) */
77#define ZFCP_NS_GID_PN_TIMEOUT 10
78
79/* task attribute values in FCP-2 FCP_CMND IU */ 76/* task attribute values in FCP-2 FCP_CMND IU */
80#define SIMPLE_Q 0 77#define SIMPLE_Q 0
81#define HEAD_OF_Q 1 78#define HEAD_OF_Q 1
@@ -319,7 +316,6 @@ struct ct_iu_gpn_ft_req {
319 * @resp: scatter-gather list for response 316 * @resp: scatter-gather list for response
320 * @handler: handler function (called for response to the request) 317 * @handler: handler function (called for response to the request)
321 * @handler_data: data passed to handler function 318 * @handler_data: data passed to handler function
322 * @timeout: FSF timeout for this request
323 * @completion: completion for synchronization purposes 319 * @completion: completion for synchronization purposes
324 * @status: used to pass error status to calling function 320 * @status: used to pass error status to calling function
325 */ 321 */
@@ -329,7 +325,6 @@ struct zfcp_send_ct {
329 struct scatterlist *resp; 325 struct scatterlist *resp;
330 void (*handler)(unsigned long); 326 void (*handler)(unsigned long);
331 unsigned long handler_data; 327 unsigned long handler_data;
332 int timeout;
333 struct completion *completion; 328 struct completion *completion;
334 int status; 329 int status;
335}; 330};