From: Tejun Heo Date: Thu, 28 Feb 2013 01:03:56 +0000 (-0800) Subject: block: fix synchronization and limit check in blk_alloc_devt() X-Git-Tag: v3.9-rc1~46^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce23bba842aee98092225d9576dba47c82352521;p=pandora-kernel.git block: fix synchronization and limit check in blk_alloc_devt() 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 Acked-by: Jens Axboe Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed