Skip to contentSkip to conversation

PATCH [3/18] qla2xxx: PCI DMA mappings rework

PATCH Andrew Vasquez 1 participant 1 message Jun 22, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

ChangeSet
1.1839 04/06/03 15:44:26 [email protected] +3 -0 Restructure qla2x00_start_scsi() so that PCI mappings are done after we've verified command list and request queue resource availability.

 drivers/scsi/qla2xxx/qla_def.h  |    4 -
 drivers/scsi/qla2xxx/qla_iocb.c |   81 +++++++++++++++++-----------------------
 drivers/scsi/qla2xxx/qla_os.c   |    4 -
 3 files changed, 36 insertions(+), 53 deletions(-)
drivers/scsi/qla2xxx/qla_def.h +0 -4
diff -Nru a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
@@ -264,10 +264,6 @@
 #define SRB_ERR_DEVICE	3		/* Request failed -- "device error" */
 #define SRB_ERR_OTHER	4
 
-	/* Segment/entries counts */
-	uint16_t	req_cnt;	/* !0 indicates counts determined */
-	uint16_t	tot_dsds;
-
 	/* SRB magic number */
 	uint16_t magic;
 #define SRB_MAGIC       0x10CB
drivers/scsi/qla2xxx/qla_iocb.c +35 -46

128 lines not on this page · raw message

drivers/scsi/qla2xxx/qla_os.c +1 -3
diff -Nru a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
@@ -3627,10 +3627,8 @@
 	srb_t *sp;
 
 	sp = mempool_alloc(ha->srb_mempool, GFP_KERNEL);
-	if (sp) {
+	if (sp)
 		atomic_set(&sp->ref_count, 1);
-		sp->req_cnt = 0;
-	}
 	return (sp);
 }