On Fri, 15 Apr 2022 11:56:07 +0800, Yu Kuai wrote: > 'q->debugfs_dir' is created in blk_register_queue(), however, it's not > removed in blk_unregister_queue() and is delayed to blk_release_queue(). > Thus it's possible that del_gendisk() is done and blk_release_queue() > is not called yet, and in the mean time blk_register_queue() is called > for the new device with the same name. In this case, kernel will > compalin about creation failure for 'debugfs_dir' like following: > > [...] Applied, thanks! [1/1] blk-mq: fix possible creation failure for 'debugfs_dir' commit: a87c29e1a85e64b28445bb1e80505230bf2e3b4b Best regards, -- Jens Axboe