[SCSI] allow sleeping in ->eh_abort_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
@@ -798,7 +798,7 @@ lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *))
|
||||
}
|
||||
|
||||
static int
|
||||
lpfc_abort_handler(struct scsi_cmnd *cmnd)
|
||||
__lpfc_abort_handler(struct scsi_cmnd *cmnd)
|
||||
{
|
||||
struct lpfc_hba *phba =
|
||||
(struct lpfc_hba *)cmnd->device->host->hostdata[0];
|
||||
@@ -917,6 +917,16 @@ lpfc_abort_handler(struct scsi_cmnd *cmnd)
|
||||
return ret == IOCB_SUCCESS ? SUCCESS : FAILED;
|
||||
}
|
||||
|
||||
static int
|
||||
lpfc_abort_handler(struct scsi_cmnd *cmnd)
|
||||
{
|
||||
int rc;
|
||||
spin_lock_irq(cmnd->device->host->host_lock);
|
||||
rc = __lpfc_abort_handler(cmnd);
|
||||
spin_unlock_irq(cmnd->device->host->host_lock);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
lpfc_reset_lun_handler(struct scsi_cmnd *cmnd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user