aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_isr.c
diff options
context:
space:
mode:
authorGiridhar Malavali <giridhar.malavali@qlogic.com>2010-07-23 06:28:23 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:06:07 -0400
commitd94d10e7277069801b4e31b40770314a8421f996 (patch)
treed860e246f919a8274761a238f6e6ee0ec00e6dd0 /drivers/scsi/qla2xxx/qla_isr.c
parent17cf2c5d76b468ca03e59c7cf60decfcef6c08c4 (diff)
[SCSI] qla2xxx: Removed dependency for SRB structure for Marker processing
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 8a608725eb7..ba971ac1c4e 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -1238,39 +1238,6 @@ qla24xx_tm_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
1238 iocb->done(sp); 1238 iocb->done(sp);
1239} 1239}
1240 1240
1241static void
1242qla24xx_marker_iocb_entry(scsi_qla_host_t *vha, struct req_que *req,
1243 struct mrk_entry_24xx *mrk)
1244{
1245 const char func[] = "MRK-IOCB";
1246 const char *type;
1247 fc_port_t *fcport;
1248 srb_t *sp;
1249 struct srb_iocb *iocb;
1250 struct srb_ctx *ctx;
1251 struct sts_entry_24xx *sts = (struct sts_entry_24xx *)mrk;
1252
1253 sp = qla2x00_get_sp_from_handle(vha, func, req, mrk);
1254 if (!sp)
1255 return;
1256
1257 ctx = sp->ctx;
1258 iocb = ctx->u.iocb_cmd;
1259 type = ctx->name;
1260 fcport = sp->fcport;
1261
1262 if (sts->entry_status) {
1263 iocb->u.marker.data = 1;
1264 DEBUG2(printk(KERN_WARNING
1265 "scsi(%ld:%x): Async-%s error entry - entry-status=%x.\n",
1266 fcport->vha->host_no, sp->handle, type,
1267 sts->entry_status));
1268 DEBUG2(qla2x00_dump_buffer((uint8_t *)mrk, sizeof(*sts)));
1269 }
1270
1271 iocb->done(sp);
1272}
1273
1274/** 1241/**
1275 * qla2x00_process_response_queue() - Process response queue entries. 1242 * qla2x00_process_response_queue() - Process response queue entries.
1276 * @ha: SCSI driver HA context 1243 * @ha: SCSI driver HA context
@@ -1942,10 +1909,6 @@ void qla24xx_process_response_queue(struct scsi_qla_host *vha,
1942 qla24xx_tm_iocb_entry(vha, rsp->req, 1909 qla24xx_tm_iocb_entry(vha, rsp->req,
1943 (struct tsk_mgmt_entry *)pkt); 1910 (struct tsk_mgmt_entry *)pkt);
1944 break; 1911 break;
1945 case MARKER_TYPE:
1946 qla24xx_marker_iocb_entry(vha, rsp->req,
1947 (struct mrk_entry_24xx *)pkt);
1948 break;
1949 case CT_IOCB_TYPE: 1912 case CT_IOCB_TYPE:
1950 qla24xx_els_ct_entry(vha, rsp->req, pkt, CT_IOCB_TYPE); 1913 qla24xx_els_ct_entry(vha, rsp->req, pkt, CT_IOCB_TYPE);
1951 clear_bit(MBX_INTERRUPT, &vha->hw->mbx_cmd_flags); 1914 clear_bit(MBX_INTERRUPT, &vha->hw->mbx_cmd_flags);