Re: Linux 5.14-rc1

From: Guenter Roeck
Date: Mon Jul 12 2021 - 09:53:37 EST


On 7/11/21 10:20 PM, Christoph Hellwig wrote:
On Sun, Jul 11, 2021 at 09:14:23PM -0700, Guenter Roeck wrote:
My guess was correct. Bisect points to the above commit. Bisect log as well
as complete backtrace and example qemu command attached.

Copying Christoph and Jens.

This should fіx it:

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 6d2d63629a90..b8d55af763f9 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -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 *);


Yes, that fixes the problem for me.

Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>

Thanks,
Guenter