]> git.kernelconcepts.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 18:47:38 +0000 (10:47 -0800)
commit9f26affd9550b922dd8aaafd7ee3f54844e6cbea
tree7bfbf5a6e1adbb6ada668cfb9b177553414c9dbb
parent7d7e0fa3d4b3e8ee06da8eae62ff86b37d7013e2
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