diff options
author | Bart Van Assche | 2017-04-26 22:47:48 +0200 |
---|---|---|
committer | Jens Axboe | 2017-04-26 23:09:04 +0200 |
commit | 2d0364c8c1a97a1d44760895a982221c06af0f35 (patch) | |
tree | 815eee282e7f3204d4c723e5b190ffc026f0fb02 /block/blk-mq-debugfs.c | |
parent | ide-pm: always pass 0 error to ide_complete_rq in ide_do_devset (diff) | |
download | kernel-qcow2-linux-2d0364c8c1a97a1d44760895a982221c06af0f35.tar.gz kernel-qcow2-linux-2d0364c8c1a97a1d44760895a982221c06af0f35.tar.xz kernel-qcow2-linux-2d0364c8c1a97a1d44760895a982221c06af0f35.zip |
blk-mq: Register <dev>/queue/mq after having registered <dev>/queue
A later patch in this series will modify blk_mq_debugfs_register()
such that it uses q->kobj.parent to determine the name of a
request queue. Hence make sure that that pointer is initialized
before blk_mq_debugfs_register() is called. To avoid lock inversion,
protect sysfs / debugfs registration with the queue sysfs_lock
instead of the global mutex all_q_mutex.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-debugfs.c')
0 files changed, 0 insertions, 0 deletions