summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorMartin K. Petersen2011-03-08 08:03:59 +0100
committerJames Bottomley2011-03-15 00:36:02 +0100
commit72f7d322fd60ce1a0579136dec7b26b0801ded4b (patch)
treea1b6bbe30bcff290018ec9618128e4f82012dd29 /drivers/scsi/scsi_lib.c
parent[SCSI] hpsa: fix incorrect PCI IDs and add two new ones (2nd try) (diff)
downloadkernel-qcow2-linux-72f7d322fd60ce1a0579136dec7b26b0801ded4b.tar.gz
kernel-qcow2-linux-72f7d322fd60ce1a0579136dec7b26b0801ded4b.tar.xz
kernel-qcow2-linux-72f7d322fd60ce1a0579136dec7b26b0801ded4b.zip
[SCSI] Include protection operation in SCSI command trace
When debugging DIF/DIX it is very helpful to be able to see which DIX operation is associated with the scsi_cmnd. Include the protection op in the SCSI command trace. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 8d4ef8efa3cd..e531acfd98a2 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1062,6 +1062,7 @@ static struct scsi_cmnd *scsi_get_cmd_from_req(struct scsi_device *sdev,
cmd->request = req;
cmd->cmnd = req->cmd;
+ cmd->prot_op = SCSI_PROT_NORMAL;
return cmd;
}