]> git.proxmox.com Git - pve-kernel.git/blob - patches/kernel/0242-Revert-scsi-libsas-allow-async-aborts.patch
revert buggy SCSI error handler commit
[pve-kernel.git] / patches / kernel / 0242-Revert-scsi-libsas-allow-async-aborts.patch
1 From b62d6a17e87a8899fe0f9be2517a9ea29972c007 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
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
9 This reverts commit 909657615d9b3ce709be4fd95b9a9e8c8c7c2be6.
10
11 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
12 ---
13 drivers/scsi/libsas/sas_scsi_host.c | 3 +++
14 1 file changed, 3 insertions(+)
15
16 diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c
17 index 87e5079d816b..137fb586aa64 100644
18 --- a/drivers/scsi/libsas/sas_scsi_host.c
19 +++ b/drivers/scsi/libsas/sas_scsi_host.c
20 @@ -491,6 +491,9 @@ int sas_eh_abort_handler(struct scsi_cmnd *cmd)
21 struct Scsi_Host *host = cmd->device->host;
22 struct sas_internal *i = to_sas_internal(host->transportt);
23
24 + if (current != host->ehandler)
25 + return FAILED;
26 +
27 if (!i->dft->lldd_abort_task)
28 return FAILED;
29
30 --
31 2.14.2
32