From: Keith Busch Date: Tue, 26 Aug 2014 15:05:36 +0000 (-0600) Subject: block: Fix dev_t minor allocation lifetime X-Git-Tag: fixes-for-v3.18-merge-window~132^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2da78092;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed