From: Stefan Richter Date: Fri, 15 Feb 2008 20:29:02 +0000 (+0100) Subject: firewire: fw-sbp2: enforce a retry of __scsi_add_device if bus generation changed X-Git-Tag: v2.6.25-rc4~158^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e80de3704ac30ddb7f9a12447a2ecee32ccd7880;p=pandora-kernel.git firewire: fw-sbp2: enforce a retry of __scsi_add_device if bus generation changed fw-sbp2 is unable to reconnect while performing __scsi_add_device because there is only a single workqueue thread context available for both at the moment. This should be fixed eventually. An actual failure of __scsi_add_device is easy to handle, but an incomplete execution of __scsi_add_device with an sdev returned would remain undetected and leave the SBP-2 target unusable. Therefore we use a workaround: If there was a bus reset during __scsi_add_device (i.e. during the SCSI probe), we remove the new sdev immediately, log out, and attempt login and SCSI probe again. Tested-by: Jarod Wilson (earlier version) Signed-off-by: Stefan Richter --- Reading git-diff-tree failed