aoe [1/1]: do not stop retransmit timer when device goes down
Subsystems (2)
PATCH 1/1 aoe [1/1]: do not stop retransmit timer when device goes down
This patch is a bugfix that follows and depends on the eight aoe driver patches sent January 19th.
Signed-off-by "Ed L. Cashin" <[email protected]>
When taking an AoE device down, keep the retransmit timer going so that it re-appears properly when detected later.
drivers/block/aoe/aoecmd.c +2 -2
@@ -331,7 +331,7 @@ rexmit_timer(ulong vp)spin_lock_irqsave (&d->lock, flags);if (d->flags &DEVFL_TKILL ) { -tdie:spin_unlock_irqrestore (&d->lock, flags); +spin_unlock_irqrestore (&d->lock, flags);return ; } f = d->frames;
@@ -342,7 +342,7 @@ tdie: spin_unlock_irqrestore(&d->lock, n /=HZ ;if (n >MAXWAIT ) {/* waited too long. device failure. */ aoedev_downdev (d); - goto tdie; +break ; }rexmit (d, f); }
Signature · 1 line
"Ed L. Cashin" <[email protected]>