scsi: libsas: allow async aborts
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Apr 2017 13:36:32 +0000 (15:36 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 6 Apr 2017 17:07:32 +0000 (13:07 -0400)
We now first try to call ->eh_abort_handler from a work queue, but libsas
was always failing that for no good reason.  Allow async aborts.

Reviewed-by: Johannes Thumshirn <jth@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_scsi_host.c

index 9bd55bce83afb62b4a0bb8500c8d05a65e046926..ee6b39a1db69b41d2bdb6d92a5a92572eb081177 100644 (file)
@@ -491,9 +491,6 @@ int sas_eh_abort_handler(struct scsi_cmnd *cmd)
        struct Scsi_Host *host = cmd->device->host;
        struct sas_internal *i = to_sas_internal(host->transportt);
 
-       if (current != host->ehandler)
-               return FAILED;
-
        if (!i->dft->lldd_abort_task)
                return FAILED;