diff options
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 78768736077f..bec4406011aa 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -2566,7 +2566,7 @@ megaraid_mbox_dpc(unsigned long devp) | |||
2566 | * aborted. All the commands issued to the F/W must complete. | 2566 | * aborted. All the commands issued to the F/W must complete. |
2567 | **/ | 2567 | **/ |
2568 | static int | 2568 | static int |
2569 | megaraid_abort_handler(struct scsi_cmnd *scp) | 2569 | __megaraid_abort_handler(struct scsi_cmnd *scp) |
2570 | { | 2570 | { |
2571 | adapter_t *adapter; | 2571 | adapter_t *adapter; |
2572 | mraid_device_t *raid_dev; | 2572 | mraid_device_t *raid_dev; |
@@ -2699,6 +2699,21 @@ megaraid_abort_handler(struct scsi_cmnd *scp) | |||
2699 | return FAILED; | 2699 | return FAILED; |
2700 | } | 2700 | } |
2701 | 2701 | ||
2702 | static int | ||
2703 | megaraid_abort_handler(struct scsi_cmnd *scp) | ||
2704 | { | ||
2705 | adapter_t *adapter; | ||
2706 | int rc; | ||
2707 | |||
2708 | adapter = SCP2ADAPTER(scp); | ||
2709 | |||
2710 | spin_lock_irq(adapter->host_lock); | ||
2711 | rc = __megaraid_abort_handler(scp); | ||
2712 | spin_unlock_irq(adapter->host_lock); | ||
2713 | |||
2714 | return rc; | ||
2715 | } | ||
2716 | |||
2702 | 2717 | ||
2703 | /** | 2718 | /** |
2704 | * megaraid_reset_handler - device reset hadler for mailbox based driver | 2719 | * megaraid_reset_handler - device reset hadler for mailbox based driver |