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

blk-mq: Only register debugfs attributes for blk-mq queues

The code in blk-mq-debugfs.c assumes that it is working on a blk-mq
queue and is not intended to work on a blk-sq queue. Hence only
register blk-mq debugfs attributes for blk-mq queues.

Fixes: commit 9c1051aa ("blk-mq: untangle debugfs and sysfs")
Signed-off-by: default avatarBart Van Assche <>
Cc: Christoph Hellwig <>
Cc: Ming Lei <>
Reviewed-by: default avatarOmar Sandoval <>
Reviewed-by: default avatarHannes Reinecke <>
Signed-off-by: default avatarJens Axboe <>
parent 22322035
......@@ -887,10 +887,10 @@ int blk_register_queue(struct gendisk *disk)
goto unlock;
if (q->mq_ops)
if (q->mq_ops) {
__blk_mq_register_dev(dev, q);
kobject_uevent(&q->kobj, KOBJ_ADD);
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