OSDN Git Service

scsi: libsas: Disable asynchronous aborts for SATA devices
authorHannes Reinecke <hare@suse.de>
Wed, 10 Jan 2018 08:34:02 +0000 (09:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jan 2018 18:58:18 +0000 (19:58 +0100)
commitedd0a403a12186aecd2e04c0a37f983cdf9c5810
tree4747b3b074de1b8de8c50e1d2962a9e107e5b04b
parent25b13c2f4f4941b60aaaba33a0b18704b9afce05
scsi: libsas: Disable asynchronous aborts for SATA devices

commit c9f926000fe3b84135a81602a9f7e63a6a7898e2 upstream.

Handling CD-ROM devices from libsas is decidedly odd, as libata relies
on SCSI EH to be started to figure out that no medium is present.  So we
cannot do asynchronous aborts for SATA devices.

Fixes: 909657615d9 ("scsi: libsas: allow async aborts")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Yves-Alexis Perez <corsac@debian.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/libsas/sas_scsi_host.c