diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2011-03-08 02:03:59 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-03-14 18:36:02 -0500 |
commit | 72f7d322fd60ce1a0579136dec7b26b0801ded4b (patch) | |
tree | a1b6bbe30bcff290018ec9618128e4f82012dd29 /drivers/scsi/scsi_lib.c | |
parent | 9143a9612277abc6e4ddced2bc54a120734834c6 (diff) | |
download | blackbird-op-linux-72f7d322fd60ce1a0579136dec7b26b0801ded4b.tar.gz blackbird-op-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.c | 1 |
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; } |