diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2012-09-18 12:19:30 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-13 21:11:31 -0800 |
commit | 3c6bdaeab4fda6c9fdd5f3f5c610dea97bddf7d6 (patch) | |
tree | 85fad84ab7a257e1da2465711e6af8569934cf7c /drivers/ata/libata-scsi.c | |
parent | 49bd665c5407a453736d3232ee58f2906b42e83c (diff) | |
download | linux-3c6bdaeab4fda6c9fdd5f3f5c610dea97bddf7d6.tar.gz linux-3c6bdaeab4fda6c9fdd5f3f5c610dea97bddf7d6.tar.bz2 linux-3c6bdaeab4fda6c9fdd5f3f5c610dea97bddf7d6.zip |
[SCSI] Add a report opcode helper
The REPORT SUPPORTED OPERATION CODES command can be used to query
whether a given opcode is supported by a device. Add a helper function
that allows us to look up commands.
We only issue RSOC if the device reports compliance with SPC-3 or
later. But to err on the side of caution we disable the command for ATA,
FireWire and USB.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index e3bda074fa12..7c2dead60518 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -1052,6 +1052,7 @@ static void ata_scsi_sdev_config(struct scsi_device *sdev) { sdev->use_10_for_rw = 1; sdev->use_10_for_ms = 1; + sdev->no_report_opcodes = 1; /* Schedule policy is determined by ->qc_defer() callback and * it needs to see every deferred qc. Set dev_blocked to 1 to |