diff options
| author | Ming Lei <[email protected]> | 2022-07-11 17:08:08 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-07-12 06:52:27 -0600 |
| commit | f3ec5d11554778c24ac8915e847223ed71d104fc (patch) | |
| tree | 75c5ca81268b791001468c28d9a9cea1bd5f4d8c /include/linux/debugobjects.h | |
| parent | d86e716aa40643e3eb8c69fab3a198146bf76dd6 (diff) | |
blk-mq: don't create hctx debugfs dir until q->debugfs_dir is created
blk_mq_debugfs_register_hctx() can be called by blk_mq_update_nr_hw_queues
when gendisk isn't added yet, such as nvme tcp.
Fixes the warning of 'debugfs: Directory 'hctx0' with parent '/' already present!'
which can be observed reliably when running blktests nvme/005.
Fixes: 6cfc0081b046 ("blk-mq: no need to check return value of debugfs_create functions")
Reported-by: Yi Zhang <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Tested-by: Yi Zhang <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions