]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fw-sbp2: logout and login after failed reconnect
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 3 Feb 2008 22:11:39 +0000 (23:11 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 16 Feb 2008 14:40:35 +0000 (15:40 +0100)
commit9610c7b3a3d09d8b31b57af478a1ba8494b00ead
treec380b8830e1fbeea6eb91f5dc892cccdad5f796b
parentbf46527493546013488f4a1ceb368f23d9e910ee
firewire: fw-sbp2: logout and login after failed reconnect

If fw-sbp2 was too late with requesting the reconnect, the target would
reject this.  In this case, log out before attempting the reconnect.
Else several firmwares will deny the re-login because they somehow
didn't invalidate the old login.

Also, don't retry reconnects in this situation.  The retries won't
succeed either.

These changes improve chances for successful re-login and shorten the
period during which the logical unit is inaccessible.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
drivers/firewire/fw-sbp2.c