| Date | Wed, 6 Feb 2013 12:00:46 +0100 | From | Jens Axboe <> | Subject | Re: [PATCH 06/62] block: fix synchronization and limit check in blk_alloc_devt() |
| |
On Sat, Feb 02 2013, Tejun Heo wrote: > idr allocation in blk_alloc_devt() wasn't synchronized against lookup > and removal, and its limit check was off by one - 1 << MINORBITS is > the number of minors allowed, not the maximum allowed minor. > > Add locking and rename MAX_EXT_DEVT to NR_EXT_DEVT and fix limit > checking. > > Signed-off-by: Tejun Heo <tj@kernel.org> > Cc: Jens Axboe <axboe@kernel.dk> > Cc: stable@vger.kernel.org
Acked-by: Jens Axboe <axboe@kernel.dk>
-- Jens Axboe
|