Re: [PATCH] block: Fix dev_t liftime allocations

2014-08-26 Thread Matthew Wilcox
On Mon, Aug 25, 2014 at 02:52:55PM -0600, Keith Busch wrote: > 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. > @@ -420,9 +420,9 @@ int blk_alloc_devt(struct hd_struct *part, dev_t

Re: [PATCH] block: Fix dev_t liftime allocations

2014-08-26 Thread Matthew Wilcox
On Mon, Aug 25, 2014 at 02:52:55PM -0600, Keith Busch wrote: 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. @@ -420,9 +420,9 @@ int blk_alloc_devt(struct hd_struct *part, dev_t

[PATCH] block: Fix dev_t liftime allocations

2014-08-25 Thread Keith Busch
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:

[PATCH] block: Fix dev_t liftime allocations

2014-08-25 Thread Keith Busch
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: