From: Hannes Reinecke Date: Thu, 14 Jun 2007 13:16:45 +0000 (+0200) Subject: [SCSI] fc_transport: Check portstates before invoking target scan X-Git-Tag: v2.6.23-rc1~1053^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d2fcd9f9858a34f7056b3b1cb60ce0f883d06b6;p=pandora-kernel.git [SCSI] fc_transport: Check portstates before invoking target scan When a target scan is initiated from sysfs, we should check the portstate prior to invoke scsi_scan_target(). Otherwise scsi_scan_target() might oops as the rport might already been removed from the scsi host and the traversal from the rport to the scsi_host in scsi_scan_target() will fail. Also the portstate already told us that communication with the target has failed, so it's quite pointless to try. Signed-off-by: Hannes Reinecke Cc: James Smart Signed-off-by: James Bottomley --- Reading git-diff-tree failed