Skip to content
Commit 2da78092 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

block: Fix dev_t minor allocation lifetime



Releases the dev_t minor when all references are closed to prevent
another device from acquiring the same major/minor.

Since the partition's release may be invoked from call_rcu's soft-irq
context, the ext_dev_idr's mutex had to be replaced with a spinlock so
as not so sleep.

Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Cc: stable@kernel.org
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 5676e7b6
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