diff options
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index bec4406011aa..057ed45b54b2 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -2726,7 +2726,7 @@ megaraid_abort_handler(struct scsi_cmnd *scp) | |||
2726 | * host | 2726 | * host |
2727 | **/ | 2727 | **/ |
2728 | static int | 2728 | static int |
2729 | megaraid_reset_handler(struct scsi_cmnd *scp) | 2729 | __megaraid_reset_handler(struct scsi_cmnd *scp) |
2730 | { | 2730 | { |
2731 | adapter_t *adapter; | 2731 | adapter_t *adapter; |
2732 | scb_t *scb; | 2732 | scb_t *scb; |
@@ -2847,6 +2847,18 @@ megaraid_reset_handler(struct scsi_cmnd *scp) | |||
2847 | return rval; | 2847 | return rval; |
2848 | } | 2848 | } |
2849 | 2849 | ||
2850 | static int | ||
2851 | megaraid_reset_handler(struct scsi_cmnd *cmd) | ||
2852 | { | ||
2853 | int rc; | ||
2854 | |||
2855 | spin_lock_irq(cmd->device->host->host_lock); | ||
2856 | rc = __megaraid_reset_handler(cmd); | ||
2857 | spin_unlock_irq(cmd->device->host->host_lock); | ||
2858 | |||
2859 | return rc; | ||
2860 | } | ||
2861 | |||
2850 | 2862 | ||
2851 | /* | 2863 | /* |
2852 | * START: internal commands library | 2864 | * START: internal commands library |