]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: Implement blk_mq_ops.show_rq()
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 26 Apr 2017 20:47:57 +0000 (13:47 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 26 Apr 2017 21:09:04 +0000 (15:09 -0600)
commit67af039a958594c5c4a49f2e4640255060d3ece4
tree4531dc9dfaffcc4e09614c76f92436f43ef63bf5
parent622aa08cd45fdc03e1a9964ad3cd20b83f5fa4fe
scsi: Implement blk_mq_ops.show_rq()

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 <bart.vanassche@sandisk.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: <linux-scsi@vger.kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/Makefile
drivers/scsi/scsi_debugfs.c [new file with mode: 0644]
drivers/scsi/scsi_debugfs.h [new file with mode: 0644]
drivers/scsi/scsi_lib.c