]> git.baikalelectronics.ru Git - kernel.git/commit
block: implement CONFIG_DEBUG_BLOCK_EXT_DEVT
authorTejun Heo <tj@kernel.org>
Mon, 25 Aug 2008 10:47:25 +0000 (19:47 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:06 +0000 (08:56 +0200)
commit26a5cc0db4eec75eb3606cd11165c68f9f448909
tree9c33dd91350ea163b160d9f5cb40d913c5caf268
parent44a7b4eb48c8f2efd49c2d0ca85e6b866406c292
block: implement CONFIG_DEBUG_BLOCK_EXT_DEVT

Extended devt introduces non-contiguos device numbers.  This patch
implements a debug option which forces most devt allocations to be
from the extended area and spreads them out.  This is enabled by
default if DEBUG_KERNEL is set and achieves...

1. Detects code paths in kernel or userland which expect predetermined
   consecutive device numbers.

2. When something goes wrong, avoid corruption as adding to the minor
   of earlier partition won't lead to the wrong but valid device.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c
drivers/ide/ide-disk.c
drivers/scsi/sd.c
lib/Kconfig.debug