]> err.no Git - linux-2.6/blobdiff - drivers/s390/scsi/zfcp_qdio.c
ahci: give another shot at clearing all bits in irq_stat
[linux-2.6] / drivers / s390 / scsi / zfcp_qdio.c
index 3f105fdcf239610b18e14a9617b90630b0444302..8ca5f074c68734ba07a11229087a390c49e8a2f3 100644 (file)
@@ -175,8 +175,9 @@ zfcp_qdio_handler_error_check(struct zfcp_adapter *adapter, unsigned int status,
                 * which is set again in case we have missed by a mile.
                 */
                zfcp_erp_adapter_reopen(adapter,
-                                      ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED |
-                                      ZFCP_STATUS_COMMON_ERP_FAILED);
+                                       ZFCP_STATUS_ADAPTER_LINK_UNPLUGGED |
+                                       ZFCP_STATUS_COMMON_ERP_FAILED, 140,
+                                       NULL);
        }
        return retval;
 }
@@ -239,8 +240,6 @@ static void zfcp_qdio_reqid_check(struct zfcp_adapter *adapter,
        struct zfcp_fsf_req *fsf_req;
        unsigned long flags;
 
-       debug_long_event(adapter->erp_dbf, 4, req_id);
-
        spin_lock_irqsave(&adapter->req_list_lock, flags);
        fsf_req = zfcp_reqlist_find(adapter, req_id);
 
@@ -529,7 +528,7 @@ zfcp_qdio_sbals_wipe(struct zfcp_fsf_req *fsf_req)
 
 
 /**
- * zfcp_qdio_sbale_fill - set address and lenght in current SBALE
+ * zfcp_qdio_sbale_fill - set address and length in current SBALE
  *     on request_queue
  */
 static void
@@ -590,7 +589,7 @@ zfcp_qdio_sbals_from_segment(struct zfcp_fsf_req *fsf_req, unsigned long sbtype,
  */
 int
 zfcp_qdio_sbals_from_sg(struct zfcp_fsf_req *fsf_req, unsigned long sbtype,
-                        struct scatterlist *sg,        int sg_count, int max_sbals)
+                        struct scatterlist *sgl, int sg_count, int max_sbals)
 {
        int sg_index;
        struct scatterlist *sg_segment;
@@ -606,9 +605,7 @@ zfcp_qdio_sbals_from_sg(struct zfcp_fsf_req *fsf_req, unsigned long sbtype,
        sbale->flags |= sbtype;
 
        /* process all segements of scatter-gather list */
-       for (sg_index = 0, sg_segment = sg, bytes = 0;
-            sg_index < sg_count;
-            sg_index++, sg_segment++) {
+       for_each_sg(sgl, sg_segment, sg_count, sg_index) {
                retval = zfcp_qdio_sbals_from_segment(
                                fsf_req,
                                sbtype,