]> 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:03:15 +0000 (11:03 -0800)
commit2c690983958ec471cf803467ff5229ff4990078d
tree5d989cf269c4238a1d3e255683438565c1960eca
parent85e8a7b93d175d0c6a395aefa1613d3e9c25a882
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