]> Git Repo - linux.git/commit
block: Fix dev_t minor allocation lifetime
authorKeith Busch <[email protected]>
Tue, 26 Aug 2014 15:05:36 +0000 (09:05 -0600)
committerJens Axboe <[email protected]>
Wed, 3 Sep 2014 21:01:02 +0000 (15:01 -0600)
commit2da78092dda13f1efd26edbbf99a567776913750
tree9f245a022542d626c948ebfb886106ce3f7e62ae
parent5676e7b6db02b80eafc2e3ad316d5f2fee817ecb
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: Keith Busch <[email protected]>
Cc: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/genhd.c
block/partition-generic.c
This page took 0.053562 seconds and 4 git commands to generate.