]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[SCSI] sd: Issue correct protection operation
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 Sep 2008 22:47:19 +0000 (18:47 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 13 Oct 2008 13:28:57 +0000 (09:28 -0400)
commitbd623e79fb6bca7ab685bb1f7376476a81ce10bb
tree3992dbec095b5034725eb4b0397c4ea9249487b6
parentc82dc88ddaf17112841dd3a6b08352968555ee08
[SCSI] sd: Issue correct protection operation

Use the same logic to prepare RD/WRPROTECT and the protection
operation.  Fixes a corner case where we could issue an unprotected
CDB and yet tell the HBA to do DIF to the drive.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sd.c