summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-debugfs.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-01-25 17:06:43 +0100
committerJens Axboe <axboe@fb.com>2017-01-27 16:17:44 +0100
commit7b3938524cfbd7abd1814d879ecfcd2e2a9aa775 (patch)
tree5e24aa0baa874be0edd9fa916087b1d147f53fc8 /block/blk-mq-debugfs.c
parentblk-mq: move hctx->dispatch and ctx->rq_list from sysfs to debugfs (diff)
downloadlinux-7b3938524cfbd7abd1814d879ecfcd2e2a9aa775.tar.xz
linux-7b3938524cfbd7abd1814d879ecfcd2e2a9aa775.zip
blk-mq: add extra request information to debugfs
The request pointers by themselves aren't super useful. Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to '')
-rw-r--r--block/blk-mq-debugfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 1967c06d80e0..ee947f2f605b 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -87,7 +87,9 @@ static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v)
{
struct request *rq = list_entry_rq(v);
- seq_printf(m, "%p\n", rq);
+ seq_printf(m, "%p {.cmd_type=%u, .cmd_flags=0x%x, .rq_flags=0x%x, .tag=%d, .internal_tag=%d}\n",
+ rq, rq->cmd_type, rq->cmd_flags, (unsigned int)rq->rq_flags,
+ rq->tag, rq->internal_tag);
return 0;
}