Commit 1c6f3fca authored by Ed L. Cashin's avatar Ed L. Cashin Committed by Greg Kroah-Hartman

[PATCH] aoe: 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: default avatar"Ed L. Cashin" <ecashin@coraid.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a712c0ef
...@@ -331,7 +331,7 @@ rexmit_timer(ulong vp) ...@@ -331,7 +331,7 @@ rexmit_timer(ulong vp)
spin_lock_irqsave(&d->lock, flags); spin_lock_irqsave(&d->lock, flags);
if (d->flags & DEVFL_TKILL) { if (d->flags & DEVFL_TKILL) {
tdie: spin_unlock_irqrestore(&d->lock, flags); spin_unlock_irqrestore(&d->lock, flags);
return; return;
} }
f = d->frames; f = d->frames;
...@@ -342,7 +342,7 @@ tdie: spin_unlock_irqrestore(&d->lock, flags); ...@@ -342,7 +342,7 @@ tdie: spin_unlock_irqrestore(&d->lock, flags);
n /= HZ; n /= HZ;
if (n > MAXWAIT) { /* waited too long. device failure. */ if (n > MAXWAIT) { /* waited too long. device failure. */
aoedev_downdev(d); aoedev_downdev(d);
goto tdie; break;
} }
rexmit(d, f); rexmit(d, f);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment