diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-01-26 17:43:23 +0100 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-02-16 15:40:32 +0100 |
commit | 1b9c12ba2fdf802a23630f70eddb0e821296634e (patch) | |
tree | f581394b4d7b297619f4f0a62c490e57480fd3ec /scripts/ksymoops | |
parent | 05cca7381429e12d66c5b5c8b5c5848055b88bf7 (diff) | |
download | blackbird-op-linux-1b9c12ba2fdf802a23630f70eddb0e821296634e.tar.gz blackbird-op-linux-1b9c12ba2fdf802a23630f70eddb0e821296634e.zip |
firewire: fw-sbp2: fix logout before login retry
This fixes a "can't recognize device" kind of bug.
If the SCSI INQUIRY failed and hence __scsi_add_device failed due to a
bus reset, we tried a logout and then waited for the already scheduled
login work to happen. So far so good, but the generation used for the
logout was outdated, hence the logout never reached the target. The
target might therefore deny the subsequent relogin attempt, which would
also leave the target inaccessible.
Therefore fetch a fresh device->generation for the logout. Use memory
barriers to prevent our plan being foiled by compiler or hardware
optimizations.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'scripts/ksymoops')
0 files changed, 0 insertions, 0 deletions