On 04/26/2017 10:47 PM, Bart Van Assche wrote:
> Show the SCSI CDB for pending SCSI commands in
> /sys/kernel/debug/block/*/mq/*/dispatch and */rq_list. An example
> of how SCSI commands are displayed by this code:
>
> ffff8801703245c0 {.op=READ, .cmd_flags=META PRIO, .rq_flags=DONTPREP IO_STAT
> STATS, .tag=14, .internal_tag=-1, .cmd=Read(10) 28 00 2a 81 1b 30 00 00 08 00}
>
> Signed-off-by: Bart Van Assche <[email protected]>
> Reviewed-by: Omar Sandoval <[email protected]>
> Cc: Martin K. Petersen <[email protected]>
> Cc: James Bottomley <[email protected]>
> Cc: Hannes Reinecke <[email protected]>
> Cc: <[email protected]>
> ---
> drivers/scsi/Makefile | 1 +
> drivers/scsi/scsi_debugfs.c | 13 +++++++++++++
> drivers/scsi/scsi_debugfs.h | 4 ++++
> drivers/scsi/scsi_lib.c | 4 ++++
> 4 files changed, 22 insertions(+)
> create mode 100644 drivers/scsi/scsi_debugfs.c
> create mode 100644 drivers/scsi/scsi_debugfs.h
>
Reviewed-by: Hannes Reinecke <[email protected]>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
[email protected] +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)