Skip to content

Commit

Permalink
blk-mq: Move the "state" debugfs attribute one level down
Browse files Browse the repository at this point in the history
Move the "state" attribute from the top level to the "mq" directory
as requested by Omar.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Bart Van Assche authored and Jens Axboe committed Apr 26, 2017
1 parent e869b54 commit 65ca1ca
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions block/blk-mq-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ static const struct file_operations blk_queue_flags_fops = {
.write = blk_queue_flags_store,
};

static const struct blk_mq_debugfs_attr blk_queue_attrs[] = {
{"state", 0600, &blk_queue_flags_fops},
{},
};

static void print_stat(struct seq_file *m, struct blk_rq_stat *stat)
{
if (stat->nr_samples) {
Expand Down Expand Up @@ -757,6 +752,7 @@ static const struct file_operations ctx_completed_fops = {

static const struct blk_mq_debugfs_attr blk_mq_debugfs_queue_attrs[] = {
{"poll_stat", 0400, &queue_poll_stat_fops},
{"state", 0600, &blk_queue_flags_fops},
{},
};

Expand Down Expand Up @@ -873,9 +869,6 @@ int blk_mq_debugfs_register_mq(struct request_queue *q)
if (!q->debugfs_dir)
return -ENOENT;

if (!debugfs_create_files(q->debugfs_dir, q, blk_queue_attrs))
goto err;

q->mq_debugfs_dir = debugfs_create_dir("mq", q->debugfs_dir);
if (!q->mq_debugfs_dir)
goto err;
Expand Down

0 comments on commit 65ca1ca

Please sign in to comment.