Re: [PATCH 4/5] scsi: Add a report opcode helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/30/2012 07:31 PM, Martin K. Petersen wrote:
--- 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


While this is bare minimum acceptable, remember this covers ATA and ATAPI devices both.

A preferred patch would simulate the RSOC op for ATA devices, and only apply the above condition to ATAPI devices.

	Jeff


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux