]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
blk-mq: add extra request information to debugfs
authorOmar Sandoval <osandov@fb.com>
Wed, 25 Jan 2017 16:06:43 +0000 (08:06 -0800)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 15:17:44 +0000 (08:17 -0700)
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>
block/blk-mq-debugfs.c

index 1967c06d80e05f559322ba16357370659ef406ed..ee947f2f605b7ae90c8fda647de3c2b4419a7a0c 100644 (file)
@@ -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;
 }