Skip to content

Commit

Permalink
blk-mq-debugfs: rename hw queue directories from <n> to hctx<n>
Browse files Browse the repository at this point in the history
It's not clear what these numbered directories represent unless you
consult the code. We're about to get rid of the intermediate "mq"
directory, so these would be even more confusing without that context.

Signed-off-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
osandov authored and axboe committed May 4, 2017
1 parent 71b9051 commit 88aabbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-mq-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ static int blk_mq_debugfs_register_hctx(struct request_queue *q,
char name[20];
int i;

snprintf(name, sizeof(name), "%u", hctx->queue_num);
snprintf(name, sizeof(name), "hctx%u", hctx->queue_num);
hctx_dir = debugfs_create_dir(name, q->mq_debugfs_dir);
if (!hctx_dir)
return -ENOMEM;
Expand Down

0 comments on commit 88aabbd

Please sign in to comment.