]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: commands in retransmit queue use new destination on failure
authorEd Cashin <ecashin@coraid.com>
Thu, 29 Nov 2012 03:19:08 +0000 (14:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:52 +0000 (16:23 +1100)
commit3d53ff24fd21483828eb6c7d2d4cab4aa900d94f
tree214f3478409513b99cbf2e132dc7956b47b46d3b
parent49f216781cb188e168f575a70acc0c62a152a0ee
aoe: commands in retransmit queue use new destination on failure

When one remote MAC address isn't working as a destination for AoE
commands, the frames used to track information associated with the AoE
commands are moved to a new aoetgt (defined by the tuple of {AoE major,
AoE minor, target MAC address}).

This patch makes sure that the frames on the queue for retransmits that
need to be done are updated to use the new destination, so that
retransmits will be sent through a working network path.

Without this change, packets on the retransmit queue will be needlessly
retransmitted to the unresponsive destination MAC, possibly causing
premature target failure before there's time for the retransmit timer to
run again, decide to retransmit again, and finally update the destination
to a working MAC address on the AoE target.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/aoe/aoe.h
drivers/block/aoe/aoecmd.c
drivers/block/aoe/aoedev.c