Stefan Richter 0fa6dfdb0a firewire: fw-sbp2: don't add scsi_device twice
When a reconnect failed but re-login succeeded, __scsi_add_device was
called again.

In those cases, __scsi_add_device succeeded and returned the pointer to
the existing scsi_device.  fw-sbp2 then continued orderly, except that
it missed to call sbp2_cancel_orbs.  SCSI core would call fw-sbp2's
eh_abort_handler eventually if there had been an outstanding command.

This patch avoids the needless lookups and temporary allocations in SCSI
core and I/O stall and timeout until eh_abort_handler hits.

Also, __scsi_add_device tolerating calls for devices which already exist
is undocumented behavior on which we shouldn't rely.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
2008-02-16 15:40:35 +01:00
..
2008-02-09 03:33:40 -05:00
2008-02-05 09:44:23 -08:00
2008-02-06 10:41:15 -08:00
2008-02-07 20:39:44 -05:00
2008-02-09 10:46:40 +01:00
2008-02-08 14:32:37 -08:00
2008-02-08 09:22:38 -08:00
2008-02-08 02:11:39 +00:00
2008-02-03 17:21:01 +02:00
2008-02-07 08:42:23 -08:00
2008-02-09 10:46:40 +01:00
2008-02-09 23:27:01 -08:00
2008-02-09 10:43:58 +01:00
2008-02-03 17:30:25 +02:00
2008-02-06 10:41:07 -08:00