Skip to content
Commit c0f3fd2b authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: fix deadlock in blk_mq_register_disk() error path



If we fail registering any of the hardware queues, we call
into blk_mq_unregister_disk() with the hotplug mutex already
held. Since blk_mq_unregister_disk() attempts to acquire the
same mutex, we end up in a less than happy place.

Reported-by: default avatarJinpu Wang <jinpu.wang@profitbricks.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 6d25ec14
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment