]> git.baikalelectronics.ru Git - kernel.git/commit
ifb: goto resched directly if error happens and dp->tq isn't empty
authorChangli Gao <xiaosuo@gmail.com>
Sat, 4 Dec 2010 14:09:08 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Dec 2010 17:45:34 +0000 (09:45 -0800)
commit2d4dd156ee2a79abcfe3b1f5e550093861c822b5
treebc88a871b3d1f9b1dcd5b9722c0edbea8a465faa
parent5d39ac5a9c135f69b2e6170e6c204d20c2f310c7
ifb: goto resched directly if error happens and dp->tq isn't empty

If we break the loop when there are still skbs in tq and no skb in
rq, the skbs will be left in txq until new skbs are enqueued into rq.
In rare cases, no new skb is queued, then these skbs will stay in rq
forever.

After this patch, if tq isn't empty when we break the loop, we goto
resched directly.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ifb.c