]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] sd: Correctly handle 6-byte commands with DIX
authorMartin K. Petersen <martin.petersen@oracle.com>
Sun, 4 Jan 2009 08:04:34 +0000 (03:04 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 5 Jan 2009 15:06:23 +0000 (09:06 -0600)
commit5db524bd469290212781e1cb0293b57a7a1c000a
tree04f26ae6eaab0507efba49a5a30b43e29149b0b6
parentbecce74b8231f8b5e51165e797f6c950d1dbcf67
[SCSI] sd: Correctly handle 6-byte commands with DIX

DIF does not work with 6-byte commands so we previously ignored those
commands when preparing a request.  However, DIX does not need
RDPROTECT/WRPROTECT to be set and 6-byte commands are consequently
perfectly valid in host-only mode.

This patch fixes a problem where we would set the wrong DIX operation
when issuing commands to a legacy disk.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sd_dif.c