[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>
This commit is contained in:
committed by
James Bottomley
parent
be922f478f
commit
9e06688e7d
@@ -99,7 +99,7 @@ struct sd_dif_tuple {
|
||||
|
||||
#if defined(CONFIG_BLK_DEV_INTEGRITY)
|
||||
|
||||
extern void sd_dif_op(struct scsi_cmnd *, unsigned int, unsigned int);
|
||||
extern void sd_dif_op(struct scsi_cmnd *, unsigned int, unsigned int, unsigned int);
|
||||
extern void sd_dif_config_host(struct scsi_disk *);
|
||||
extern int sd_dif_prepare(struct request *rq, sector_t, unsigned int);
|
||||
extern void sd_dif_complete(struct scsi_cmnd *, unsigned int);
|
||||
|
Reference in New Issue
Block a user