PATCH [3/18] qla2xxx: PCI DMA mappings rework
Subsystems (2)
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.
Signed-off-by Andrew Vasquez <[email protected]>
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
@@ -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
@@ -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); }