aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2012-08-28 14:29:33 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-09-24 04:10:59 -0400
commit8c579ab69d50a416887390ba4b89598a7b2fa0b6 (patch)
tree11a552e7ebcc13c1a15ca764da04bece358d26a1 /drivers/scsi/sd.c
parentb656688a90175d4c424a2f02264863ede7e82d7b (diff)
[SCSI] sd: Avoid remapping bad reference tags
It does not make sense to translate ref tags with unexpected values. Instead we simply ignore them and let the upper layers catch the problem. Ref tags that contain the expected value are still remapped. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r--drivers/scsi/sd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 4df73e52a4f9..9f7fc39891b8 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -804,9 +804,8 @@ static int sd_prep_fn(struct request_queue *q, struct request *rq)
804 SCpnt->cmnd[0] = WRITE_6; 804 SCpnt->cmnd[0] = WRITE_6;
805 SCpnt->sc_data_direction = DMA_TO_DEVICE; 805 SCpnt->sc_data_direction = DMA_TO_DEVICE;
806 806
807 if (blk_integrity_rq(rq) && 807 if (blk_integrity_rq(rq))
808 sd_dif_prepare(rq, block, sdp->sector_size) == -EIO) 808 sd_dif_prepare(rq, block, sdp->sector_size);
809 goto out;
810 809
811 } else if (rq_data_dir(rq) == READ) { 810 } else if (rq_data_dir(rq) == READ) {
812 SCpnt->cmnd[0] = READ_6; 811 SCpnt->cmnd[0] = READ_6;