]> git.baikalelectronics.ru Git - kernel.git/commit
sd: don't mess with SD_MINORS for CONFIG_DEBUG_BLOCK_EXT_DEVT
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Jul 2021 15:50:01 +0000 (17:50 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Jul 2021 19:25:37 +0000 (12:25 -0700)
commit5efa5d12daca6f7b357cf9df36b38b39bf8e9ba1
tree2dd3f111b97f1504356da770b01d1d65c663e729
parenta48b475086a0eb35ad23861ae48fa3ab757b9065
sd: don't mess with SD_MINORS for CONFIG_DEBUG_BLOCK_EXT_DEVT

No need to give up the original sd minor even with this option,
and if we did we'd also need to fix the number of minors for
this configuration to actually work.

Fixes: d3eff3654ba24 ("block: refactor device number setup in __device_add_disk")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/sd.c