diff options
-rw-r--r-- | Documentation/aoe/aoe.txt | 4 | ||||
-rw-r--r-- | drivers/block/aoe/aoecmd.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/aoe/aoe.txt b/Documentation/aoe/aoe.txt index bfc9cb19abcd..c71487d399d1 100644 --- a/Documentation/aoe/aoe.txt +++ b/Documentation/aoe/aoe.txt | |||
@@ -125,7 +125,9 @@ DRIVER OPTIONS | |||
125 | The aoe_deadsecs module parameter determines the maximum number of | 125 | The aoe_deadsecs module parameter determines the maximum number of |
126 | seconds that the driver will wait for an AoE device to provide a | 126 | seconds that the driver will wait for an AoE device to provide a |
127 | response to an AoE command. After aoe_deadsecs seconds have | 127 | response to an AoE command. After aoe_deadsecs seconds have |
128 | elapsed, the AoE device will be marked as "down". | 128 | elapsed, the AoE device will be marked as "down". A value of zero |
129 | is supported for testing purposes and makes the aoe driver keep | ||
130 | trying AoE commands forever. | ||
129 | 131 | ||
130 | The aoe_maxout module parameter has a default of 128. This is the | 132 | The aoe_maxout module parameter has a default of 128. This is the |
131 | maximum number of unresponded packets that will be sent to an AoE | 133 | maximum number of unresponded packets that will be sent to an AoE |
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index da360f95c8ea..abf4ad2d3e18 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c | |||
@@ -812,7 +812,9 @@ rexmit_timer(ulong vp) | |||
812 | since = tsince_hr(f); | 812 | since = tsince_hr(f); |
813 | n = f->waited_total + since; | 813 | n = f->waited_total + since; |
814 | n /= USEC_PER_SEC; | 814 | n /= USEC_PER_SEC; |
815 | if (n > aoe_deadsecs && !(f->flags & FFL_PROBE)) { | 815 | if (aoe_deadsecs |
816 | && n > aoe_deadsecs | ||
817 | && !(f->flags & FFL_PROBE)) { | ||
816 | /* Waited too long. Device failure. | 818 | /* Waited too long. Device failure. |
817 | * Hang all frames on first hash bucket for downdev | 819 | * Hang all frames on first hash bucket for downdev |
818 | * to clean up. | 820 | * to clean up. |