0242-Revert-scsi-libsas-allow-async-aborts.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From b62d6a17e87a8899fe0f9be2517a9ea29972c007 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <[email protected]>
  3. Date: Mon, 8 Jan 2018 11:49:28 +0100
  4. Subject: [PATCH 242/242] Revert "scsi: libsas: allow async aborts"
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This reverts commit 909657615d9b3ce709be4fd95b9a9e8c8c7c2be6.
  9. Signed-off-by: Fabian Grünbichler <[email protected]>
  10. ---
  11. drivers/scsi/libsas/sas_scsi_host.c | 3 +++
  12. 1 file changed, 3 insertions(+)
  13. diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c
  14. index 87e5079d816b..137fb586aa64 100644
  15. --- a/drivers/scsi/libsas/sas_scsi_host.c
  16. +++ b/drivers/scsi/libsas/sas_scsi_host.c
  17. @@ -491,6 +491,9 @@ int sas_eh_abort_handler(struct scsi_cmnd *cmd)
  18. struct Scsi_Host *host = cmd->device->host;
  19. struct sas_internal *i = to_sas_internal(host->transportt);
  20. + if (current != host->ehandler)
  21. + return FAILED;
  22. +
  23. if (!i->dft->lldd_abort_task)
  24. return FAILED;
  25. --
  26. 2.14.2