]> git.baikalelectronics.ru Git - kernel.git/commit
ieee1394: sbp2: let nodemgr retry node updates during bus reset series
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 16 Aug 2008 11:39:26 +0000 (13:39 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 19 Aug 2008 16:47:56 +0000 (18:47 +0200)
commitc5a6cfd10cb9a2b33365a94d7d7620bb86dbdfde
tree10000f577653a879154ee9a1eee632990980b0b8
parent7b1c2e339fe0bacf9a29f858d93372f30c25d41e
ieee1394: sbp2: let nodemgr retry node updates during bus reset series

sbp2 was too quick to report .update() to the ieee1394 core as failed.
(Logged as "Failed to reconnect to sbp2 device!".)  The core would then
unbind sbp2 from the device.

This is not justified if the .update() failed because another bus reset
happened.  We check this and tell the ieee1394 that .update() succeeded,
and the core will call sbp2's .update() for the new bus reset as well.

This improves reconnection/re-login especially on buses with several
disks as they may issue bus resets in close succession when they come
online.

Tested by Damien Benoist.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/sbp2.c