]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0242-Revert-scsi-libsas-allow-async-aborts.patch
build: reformat existing patches
[pve-kernel.git] / patches / kernel / 0242-Revert-scsi-libsas-allow-async-aborts.patch
CommitLineData
59d5af67 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
633c5ed1
FG
2From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3Date: Mon, 8 Jan 2018 11:49:28 +0100
59d5af67 4Subject: [PATCH] Revert "scsi: libsas: allow async aborts"
633c5ed1
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This reverts commit 909657615d9b3ce709be4fd95b9a9e8c8c7c2be6.
10
11Signed-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
16diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c
17index 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--
312.14.2
32