]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
aoe: commands in retransmit queue use new destination on failure
authorEd Cashin <ecashin@coraid.com>
Thu, 15 Nov 2012 02:38:51 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:21 +0000 (17:32 +1100)
commitd2921fbfbaf8beb8808572cd2c07e730360b2af5
tree0f6603f26e9aed2e4ae489ca4fb761ab8ea3c0bf
parent86cc20a067f46b209213a52f7a02b238ad1868e5
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