From: Christoph Hellwig Date: Wed, 4 Jan 2006 12:45:20 +0000 (+0100) Subject: [SCSI] sas: fix removal of devices behind expanders X-Git-Tag: v2.6.16-rc1~162^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4054239929479907f20b9d68c905589125ad343;p=pandora-kernel.git [SCSI] sas: fix removal of devices behind expanders We need to iterate over all children when removing and expander, else stale objects will be around after host removal. This fixes the oops Eric Moore saw when removing and reloading mptsas. Also don't try the scsi_remove_target call unless operating on an end device. The current unconditional call is harmless but confusing. Signed-off-by: Christoph Hellwig Signed-off-by: James Bottomley --- Reading git-diff-tree failed