diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_bsg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 10942fc9808d..903b0586ded3 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c | |||
@@ -1512,6 +1512,7 @@ qla24xx_bsg_timeout(struct fc_bsg_job *bsg_job) | |||
1512 | if (((sp_bsg->type == SRB_CT_CMD) || | 1512 | if (((sp_bsg->type == SRB_CT_CMD) || |
1513 | (sp_bsg->type == SRB_ELS_CMD_HST)) | 1513 | (sp_bsg->type == SRB_ELS_CMD_HST)) |
1514 | && (sp_bsg->u.bsg_job == bsg_job)) { | 1514 | && (sp_bsg->u.bsg_job == bsg_job)) { |
1515 | spin_unlock_irqrestore(&ha->hardware_lock, flags); | ||
1515 | if (ha->isp_ops->abort_command(sp)) { | 1516 | if (ha->isp_ops->abort_command(sp)) { |
1516 | DEBUG2(qla_printk(KERN_INFO, ha, | 1517 | DEBUG2(qla_printk(KERN_INFO, ha, |
1517 | "scsi(%ld): mbx " | 1518 | "scsi(%ld): mbx " |
@@ -1527,6 +1528,7 @@ qla24xx_bsg_timeout(struct fc_bsg_job *bsg_job) | |||
1527 | bsg_job->req->errors = | 1528 | bsg_job->req->errors = |
1528 | bsg_job->reply->result = 0; | 1529 | bsg_job->reply->result = 0; |
1529 | } | 1530 | } |
1531 | spin_lock_irqsave(&ha->hardware_lock, flags); | ||
1530 | goto done; | 1532 | goto done; |
1531 | } | 1533 | } |
1532 | } | 1534 | } |