]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sd name space exhaustion causes system hang
authorMichael Reed <mdr@sgi.com>
Mon, 20 Sep 2010 16:20:22 +0000 (11:20 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:00:02 +0000 (11:00 -0800)
commitc5b2751c1bd98bcab5f79bba0c771ef641c14283
tree97fff45a9743b784ce38c1eb76e241497afee5e4
parent616ab3c99a971ec876f7db7f396ea0766347be9f
sd name space exhaustion causes system hang

commit 1a03ae0f556a931aa3747b70e44b78308f5b0590 upstream.

Following a site power outage which re-enabled all the ports on my FC
switches, my system subsequently booted with far too many luns!  I had
let it run hoping it would make multi-user.  It didn't.  :(  It hung solid
after exhausting the last sd device, sdzzz, and attempting to create sdaaaa
and beyond.  I was unable to get a dump.

Discovered using a 2.6.32.13 based system.

correct this by detecting when the last index is utilized and failing
the sd probe of the device.  Patch applies to scsi-misc-2.6.

Signed-off-by: Michael Reed <mdr@sgi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/sd.c