Commit 65ca1ca3 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

blk-mq: Move the "state" debugfs attribute one level down

Move the "state" attribute from the top level to the "mq" directory
as requested by Omar.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: default avatarOmar Sandoval <osandov@fb.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent e869b546
...@@ -141,11 +141,6 @@ static const struct file_operations blk_queue_flags_fops = { ...@@ -141,11 +141,6 @@ static const struct file_operations blk_queue_flags_fops = {
.write = blk_queue_flags_store, .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) static void print_stat(struct seq_file *m, struct blk_rq_stat *stat)
{ {
if (stat->nr_samples) { if (stat->nr_samples) {
...@@ -757,6 +752,7 @@ static const struct file_operations ctx_completed_fops = { ...@@ -757,6 +752,7 @@ static const struct file_operations ctx_completed_fops = {
static const struct blk_mq_debugfs_attr blk_mq_debugfs_queue_attrs[] = { static const struct blk_mq_debugfs_attr blk_mq_debugfs_queue_attrs[] = {
{"poll_stat", 0400, &queue_poll_stat_fops}, {"poll_stat", 0400, &queue_poll_stat_fops},
{"state", 0600, &blk_queue_flags_fops},
{}, {},
}; };
...@@ -873,9 +869,6 @@ int blk_mq_debugfs_register_mq(struct request_queue *q) ...@@ -873,9 +869,6 @@ int blk_mq_debugfs_register_mq(struct request_queue *q)
if (!q->debugfs_dir) if (!q->debugfs_dir)
return -ENOENT; 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); q->mq_debugfs_dir = debugfs_create_dir("mq", q->debugfs_dir);
if (!q->mq_debugfs_dir) if (!q->mq_debugfs_dir)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment