Skip to content

Commit

Permalink
[SCSI] scsi_trace: Decode UNMAP bit in WRITE SAME(10)
Browse files Browse the repository at this point in the history
As of SBC3r26 WRITE SAME(10) supports the UNMAP bit.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
  • Loading branch information
Martin K. Petersen authored and James Bottomley committed May 24, 2011
1 parent 756aca7 commit c498bf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/scsi/scsi_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ scsi_trace_rw10(struct trace_seq *p, unsigned char *cdb, int len)
trace_seq_printf(p, "lba=%llu txlen=%llu protect=%u",
(unsigned long long)lba, (unsigned long long)txlen,
cdb[1] >> 5);

if (cdb[0] == WRITE_SAME)
trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1);

trace_seq_putc(p, 0);

return ret;
Expand Down

0 comments on commit c498bf1

Please sign in to comment.