]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
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

index 6d2d63629a90d5ffd8297b660d1cbbed8c10c5ad..b8d55af763f92ddc62f0ca5d546dd03801a6fc1e 100644 (file)
@@ -98,11 +98,7 @@ MODULE_ALIAS_SCSI_DEVICE(TYPE_MOD);
 MODULE_ALIAS_SCSI_DEVICE(TYPE_RBC);
 MODULE_ALIAS_SCSI_DEVICE(TYPE_ZBC);
 
-#if !defined(CONFIG_DEBUG_BLOCK_EXT_DEVT)
 #define SD_MINORS      16
-#else
-#define SD_MINORS      0
-#endif
 
 static void sd_config_discard(struct scsi_disk *, unsigned int);
 static void sd_config_write_same(struct scsi_disk *);