[SCSI] sd: Correctly handle all combinations of DIF and DIX
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 Sep 2008 22:47:21 +0000 (18:47 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 13 Oct 2008 13:28:58 +0000 (09:28 -0400)
commit9e06688e7d60149cc9ef78ff29515c20186bb418
treecb6df4657c1964244a51d6ad3a5a54b849b93894
parentbe922f478f430f8fab4db952ffc20c86f23de397
[SCSI] sd: Correctly handle all combinations of DIF and DIX

The old detection code couldn't handle all possible combinations of
DIX and DIF.  This version does, giving priority to DIX if the
controller is capable.

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