Omar Sandoval 6ac93117ab blktrace: use existing disk debugfs directory
We may already have a directory to put the blktrace stuff in if

1. The disk uses blk-mq
2. CONFIG_BLK_DEBUG_FS is enabled
3. We are tracing the whole disk and not a partition

Instead of hardcoding this very specific case, let's use the new
debugfs_lookup(). If the directory exists, we use it, otherwise we
create one and clean it up later.

Fixes: 07e4fead45e6 ("blk-mq: create debugfs directory tree")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-02-02 10:20:16 -07:00
..
2017-01-16 14:03:31 -05:00
2016-12-25 17:21:22 +01:00
2017-01-12 07:01:56 -07:00
2016-11-25 16:25:52 -05:00
2016-12-25 17:21:22 +01:00
2016-12-12 18:55:06 -08:00
2016-12-22 22:58:37 -05:00
2016-09-22 20:00:36 -05:00