Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49110
b: refs/heads/master
c: af37acf
h: refs/heads/master
v: v3
  • Loading branch information
Sumant Patro authored and James Bottomley committed Feb 16, 2007
1 parent 6db178a commit cabd758
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9b7320294f885be6087bdef7a0e25922c36eb1b
refs/heads/master: af37acfb63d8e924550e67b884dbd1c478e26c96
13 changes: 12 additions & 1 deletion trunk/drivers/scsi/megaraid/megaraid_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,11 @@ megasas_queue_command(struct scsi_cmnd *scmd, void (*done) (struct scsi_cmnd *))

instance = (struct megasas_instance *)
scmd->device->host->hostdata;

/* Don't process if we have already declared adapter dead */
if (instance->hw_crit_error)
return SCSI_MLQUEUE_HOST_BUSY;

scmd->scsi_done = done;
scmd->result = 0;

Expand Down Expand Up @@ -1282,11 +1287,13 @@ megasas_deplete_reply_queue(struct megasas_instance *instance, u8 alt_status)
if(instance->instancet->clear_intr(instance->reg_set))
return IRQ_NONE;

if (instance->hw_crit_error)
goto out_done;
/*
* Schedule the tasklet for cmd completion
*/
tasklet_schedule(&instance->isr_tasklet);

out_done:
return IRQ_HANDLED;
}

Expand Down Expand Up @@ -1741,6 +1748,10 @@ static void megasas_complete_cmd_dpc(unsigned long instance_addr)
struct megasas_cmd *cmd;
struct megasas_instance *instance = (struct megasas_instance *)instance_addr;

/* If we have already declared adapter dead, donot complete cmds */
if (instance->hw_crit_error)
return;

producer = *instance->producer;
consumer = *instance->consumer;

Expand Down

0 comments on commit cabd758

Please sign in to comment.