]> git.hungrycats.org Git - linux/commitdiff
[NET]: Preemption disabling is superfluous in net_rx_action().
authorDavid S. Miller <davem@nuts.davemloft.net>
Fri, 19 Mar 2004 06:20:52 +0000 (22:20 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Fri, 19 Mar 2004 06:20:52 +0000 (22:20 -0800)
Noticed by Jan Glauber, confirmed by Stephen Hemminger.

net/core/dev.c

index 201878db9853c67c9aba6744922cde861fdb8035..e5a87037af19b398aecd0563be066544d92f208d 100644 (file)
@@ -1836,7 +1836,6 @@ static void net_rx_action(struct softirq_action *h)
        int budget = netdev_max_backlog;
 
        
-       preempt_disable();
        local_irq_disable();
 
        while (!list_empty(&queue->poll_list)) {
@@ -1865,7 +1864,6 @@ static void net_rx_action(struct softirq_action *h)
        }
 out:
        local_irq_enable();
-       preempt_enable();
        return;
 
 softnet_break: