From: James Bottomley Date: Sat, 1 Aug 2009 00:39:36 +0000 (+0000) Subject: [SCSI] ses: fix hotplug with multiple devices and expanders X-Git-Tag: v2.6.32-rc1~689^2~161 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=163f52b6cf3a639df6a72c7937e0eb88b20f1ef3;p=pandora-kernel.git [SCSI] ses: fix hotplug with multiple devices and expanders In a situation either with expanders or with multiple enclosure devices, hot add doesn't always work. This is because we try to find a single enclosure device attached to the host. Fix this by looping over all enclosure devices attached to the host and also by making the find loop recognise that the enclosure devices may be expander remote (i.e. not parented by the host). Signed-off-by: James Bottomley Signed-off-by: James Bottomley --- Reading git-diff-tree failed