]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: failover remote interface based on aoe_deadsecs parameter
authorEd Cashin <ecashin@coraid.com>
Fri, 7 Sep 2012 00:25:11 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Sep 2012 07:08:50 +0000 (17:08 +1000)
commita6c205ebb56ae8c5235e198280992ccf0a512f86
tree0c012b1088b8ba80bca5d3d0e108c0d93a8c8235
parent72390d153fb8bf19f9d126fa82c7af2ac46dfa46
aoe: failover remote interface based on aoe_deadsecs parameter

The aoe_deadsecs module parameter allows the user to specify a hard limit
on the number of seconds an AoE command can be retransmitted before the
AoE block device is considered to have failed.

Using aoe_deadsecs to determine the time we try using a different remote
interface helps to ensure that the hard limit is not reached before we've
tried to recover by sending to a different remote port.

As a data storage target, the AoE target is unambiguously identified by
its {major, minor} AoE address tuple, and an AoE target can have multiple
MAC addresses.  However, note that "target" in the driver code and
comments means a {major, minor, MAC address} tuple, as in "somewhere to
send packets".

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