diff options
author | Omar Sandoval <osandov@fb.com> | 2017-01-31 17:53:21 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-02 12:20:16 -0500 |
commit | 62ebce16c0ac2ffac44e32f931a2d8f6e749be4c (patch) | |
tree | e49141e8e4bf7da4984f911812f6a1ffefed7576 /block/blk-sysfs.c | |
parent | 18fbda91c6370d520278db9ee1e768b59ef5c4ab (diff) |
blk-mq: move debugfs_remove() of disk dir to blk_release_queue()
This needs to happen after we tear down blktrace.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 3e204789b8d3..3ce1217778f4 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c | |||
@@ -824,6 +824,9 @@ static void blk_release_queue(struct kobject *kobj) | |||
824 | 824 | ||
825 | blk_trace_shutdown(q); | 825 | blk_trace_shutdown(q); |
826 | 826 | ||
827 | if (q->mq_ops) | ||
828 | blk_mq_debugfs_unregister(q); | ||
829 | |||
827 | if (q->bio_split) | 830 | if (q->bio_split) |
828 | bioset_free(q->bio_split); | 831 | bioset_free(q->bio_split); |
829 | 832 | ||