diff options
author | Steffen Maier <maier@linux.ibm.com> | 2018-11-08 09:44:40 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-11-15 15:01:17 -0500 |
commit | a0e86d95558435670ce0616d031ba18aff6e4cd5 (patch) | |
tree | e0a25866d4f21aa185df3cca207cb62c251d2813 /drivers/s390/scsi | |
parent | c24635acce1e875838d4bc5aae1da27e4e5ced23 (diff) |
scsi: zfcp: move scsi_eh & non-ERP timeout defines owned by and local to zfcp_fsf.c
Also clarify namespace prefix for the timeout used for FSF requests on
behalf of SCSI error recovery: It is zfcp_fsf_ not zfcp_scsi_.
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r-- | drivers/s390/scsi/zfcp_def.h | 6 | ||||
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 9 |
2 files changed, 7 insertions, 8 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 1b6d64eb66b7..87a1fef5568e 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -41,17 +41,11 @@ | |||
41 | #include "zfcp_fc.h" | 41 | #include "zfcp_fc.h" |
42 | #include "zfcp_qdio.h" | 42 | #include "zfcp_qdio.h" |
43 | 43 | ||
44 | /********************* SCSI SPECIFIC DEFINES *********************************/ | ||
45 | #define ZFCP_SCSI_ER_TIMEOUT (10*HZ) | ||
46 | |||
47 | /********************* FSF SPECIFIC DEFINES *********************************/ | 44 | /********************* FSF SPECIFIC DEFINES *********************************/ |
48 | 45 | ||
49 | /* ATTENTION: value must not be used by hardware */ | 46 | /* ATTENTION: value must not be used by hardware */ |
50 | #define FSF_QTCB_UNSOLICITED_STATUS 0x6305 | 47 | #define FSF_QTCB_UNSOLICITED_STATUS 0x6305 |
51 | 48 | ||
52 | /* timeout value for "default timer" for fsf requests */ | ||
53 | #define ZFCP_FSF_REQUEST_TIMEOUT (60*HZ) | ||
54 | |||
55 | /*************** ADAPTER/PORT/UNIT AND FSF_REQ STATUS FLAGS ******************/ | 49 | /*************** ADAPTER/PORT/UNIT AND FSF_REQ STATUS FLAGS ******************/ |
56 | 50 | ||
57 | /* | 51 | /* |
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 3c86e27f094d..095ab7fdcf4b 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c | |||
@@ -19,6 +19,11 @@ | |||
19 | #include "zfcp_qdio.h" | 19 | #include "zfcp_qdio.h" |
20 | #include "zfcp_reqlist.h" | 20 | #include "zfcp_reqlist.h" |
21 | 21 | ||
22 | /* timeout for FSF requests sent during scsi_eh: abort or FCP TMF */ | ||
23 | #define ZFCP_FSF_SCSI_ER_TIMEOUT (10*HZ) | ||
24 | /* timeout for: exchange config/port data outside ERP, or open/close WKA port */ | ||
25 | #define ZFCP_FSF_REQUEST_TIMEOUT (60*HZ) | ||
26 | |||
22 | struct kmem_cache *zfcp_fsf_qtcb_cache; | 27 | struct kmem_cache *zfcp_fsf_qtcb_cache; |
23 | 28 | ||
24 | static void zfcp_fsf_request_timeout_handler(struct timer_list *t) | 29 | static void zfcp_fsf_request_timeout_handler(struct timer_list *t) |
@@ -912,7 +917,7 @@ struct zfcp_fsf_req *zfcp_fsf_abort_fcp_cmnd(struct scsi_cmnd *scmnd) | |||
912 | req->qtcb->header.port_handle = zfcp_sdev->port->handle; | 917 | req->qtcb->header.port_handle = zfcp_sdev->port->handle; |
913 | req->qtcb->bottom.support.req_handle = (u64) old_req_id; | 918 | req->qtcb->bottom.support.req_handle = (u64) old_req_id; |
914 | 919 | ||
915 | zfcp_fsf_start_timer(req, ZFCP_SCSI_ER_TIMEOUT); | 920 | zfcp_fsf_start_timer(req, ZFCP_FSF_SCSI_ER_TIMEOUT); |
916 | if (!zfcp_fsf_req_send(req)) | 921 | if (!zfcp_fsf_req_send(req)) |
917 | goto out; | 922 | goto out; |
918 | 923 | ||
@@ -2369,7 +2374,7 @@ struct zfcp_fsf_req *zfcp_fsf_fcp_task_mgmt(struct scsi_device *sdev, | |||
2369 | fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu; | 2374 | fcp_cmnd = &req->qtcb->bottom.io.fcp_cmnd.iu; |
2370 | zfcp_fc_fcp_tm(fcp_cmnd, sdev, tm_flags); | 2375 | zfcp_fc_fcp_tm(fcp_cmnd, sdev, tm_flags); |
2371 | 2376 | ||
2372 | zfcp_fsf_start_timer(req, ZFCP_SCSI_ER_TIMEOUT); | 2377 | zfcp_fsf_start_timer(req, ZFCP_FSF_SCSI_ER_TIMEOUT); |
2373 | if (!zfcp_fsf_req_send(req)) | 2378 | if (!zfcp_fsf_req_send(req)) |
2374 | goto out; | 2379 | goto out; |
2375 | 2380 | ||