]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Only register debugfs attributes for blk-mq queues
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 25 May 2017 23:38:06 +0000 (16:38 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 26 May 2017 13:25:13 +0000 (07:25 -0600)
commit260b4c968225cfd866b265ccf0dc1bdc298acd53
treec94396011318e42c77a75d92e93a191deb81e262
parent402e08ed614034345d7b1a6d44219862c8438c68
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 653937064f6d ("blk-mq: untangle debugfs and sysfs")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-sysfs.c