aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2010-02-17 05:18:51 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:46:21 -0500
commit452b505c5ada345103bdfdb39dc550df3ffe9eea (patch)
treede88e7fb6c42de0fc9522d959abc9c82f57d0fe5 /drivers/s390/scsi
parentb6bd2fb92a7bb9f1f3feecd9945c21e6c227dd51 (diff)
[SCSI] zfcp: Remove two FIXME comments
On a link down, the adapter reopen is not strictly necessary, but it helps flushing pending requests as quickly as possible. Add a comment mentioning this. qdio returning a problem on the response queue is an unlikely event. The recovery mentioned in the comment might resolve it, so implement it. This also has the advantage that it creates an entry in the recovery trace to see if and when this is occurring. 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')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c2
-rw-r--r--drivers/s390/scsi/zfcp_qdio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 36a6f4a7b8d7..e5ff45fbb8ae 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -394,7 +394,7 @@ static void zfcp_fsf_protstatus_eval(struct zfcp_fsf_req *req)
394 case FSF_PROT_LINK_DOWN: 394 case FSF_PROT_LINK_DOWN:
395 zfcp_fsf_link_down_info_eval(req, "fspse_5", 395 zfcp_fsf_link_down_info_eval(req, "fspse_5",
396 &psq->link_down_info); 396 &psq->link_down_info);
397 /* FIXME: reopening adapter now? better wait for link up */ 397 /* go through reopen to flush pending requests */
398 zfcp_erp_adapter_reopen(adapter, 0, "fspse_6", req); 398 zfcp_erp_adapter_reopen(adapter, 0, "fspse_6", req);
399 break; 399 break;
400 case FSF_PROT_REEST_QUEUE: 400 case FSF_PROT_REEST_QUEUE:
diff --git a/drivers/s390/scsi/zfcp_qdio.c b/drivers/s390/scsi/zfcp_qdio.c
index 6c5228b627fc..3d329fa3d094 100644
--- a/drivers/s390/scsi/zfcp_qdio.c
+++ b/drivers/s390/scsi/zfcp_qdio.c
@@ -106,7 +106,7 @@ static void zfcp_qdio_resp_put_back(struct zfcp_qdio *qdio, int processed)
106 106
107 if (unlikely(retval)) { 107 if (unlikely(retval)) {
108 atomic_set(&queue->count, count); 108 atomic_set(&queue->count, count);
109 /* FIXME: Recover this with an adapter reopen? */ 109 zfcp_erp_adapter_reopen(qdio->adapter, 0, "qdrpb_1", NULL);
110 } else { 110 } else {
111 queue->first += count; 111 queue->first += count;
112 queue->first %= QDIO_MAX_BUFFERS_PER_Q; 112 queue->first %= QDIO_MAX_BUFFERS_PER_Q;