net: Fix locking in flush_backlog
authorTom Herbert <therbert@google.com>
Tue, 23 Mar 2010 13:39:19 +0000 (13:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2010 06:17:18 +0000 (23:17 -0700)
commite51d739ab79110c43ca03daf3ddb3c52dadd38b7
treeb15bdd3cb58054cf052d821277408086a1cd7d0e
parentec43b1a64a132303a6800c781bc17c683aedc55b
net: Fix locking in flush_backlog

Need to take spinlocks when dequeuing from input_pkt_queue in flush_backlog.
Also, flush_backlog can now be called directly from netdev_run_todo.

Signed-off-by: Tom Herbert <therbert@google.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c