Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44292
b: refs/heads/master
c: a49f99f
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and David S. Miller committed Dec 12, 2006
1 parent cc00049 commit 684f5bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37004af3aaf28f39981754a05cf74361c0834a7a
refs/heads/master: a49f99ffca57a2eada23b1ac908a405c17859e35
6 changes: 4 additions & 2 deletions trunk/net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ static void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
/* don't get messages out of order, and no recursion */
if (skb_queue_len(&npinfo->txq) == 0 &&
npinfo->poll_owner != smp_processor_id()) {
local_bh_disable(); /* Where's netif_tx_trylock_bh()? */
unsigned long flags;

local_irq_save(flags);
if (netif_tx_trylock(dev)) {
/* try until next clock tick */
for (tries = jiffies_to_usecs(1)/USEC_PER_POLL;
Expand All @@ -261,7 +263,7 @@ static void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
}
netif_tx_unlock(dev);
}
local_bh_enable();
local_irq_restore(flags);
}

if (status != NETDEV_TX_OK) {
Expand Down

0 comments on commit 684f5bd

Please sign in to comment.