• Bart Van Assche's avatar
    scsi: Implement blk_mq_ops.show_rq() · 0eebd005
    Bart Van Assche authored
    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: default avatarBart Van Assche <bart.vanassche@sandisk.com>
    Reviewed-by: default avatarOmar 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: default avatarJens Axboe <axboe@fb.com>
    0eebd005
scsi_debugfs.c 361 Bytes