|
@@ -1914,7 +1914,6 @@ static int megasas_generic_reset(struct scsi_cmnd *scmd)
|
|
|
static enum
|
|
|
blk_eh_timer_return megasas_reset_timer(struct scsi_cmnd *scmd)
|
|
|
{
|
|
|
- struct megasas_cmd *cmd = (struct megasas_cmd *)scmd->SCp.ptr;
|
|
|
struct megasas_instance *instance;
|
|
|
unsigned long flags;
|
|
|
|
|
@@ -1923,7 +1922,7 @@ blk_eh_timer_return megasas_reset_timer(struct scsi_cmnd *scmd)
|
|
|
return BLK_EH_NOT_HANDLED;
|
|
|
}
|
|
|
|
|
|
- instance = cmd->instance;
|
|
|
+ instance = (struct megasas_instance *)scmd->device->host->hostdata;
|
|
|
if (!(instance->flag & MEGASAS_FW_BUSY)) {
|
|
|
/* FW is busy, throttle IO */
|
|
|
spin_lock_irqsave(instance->host->host_lock, flags);
|