Re: net_device->queue_lock contention on 32-way box

From: David S. Miller
Date: Wed May 26 2004 - 17:03:22 EST


On Wed, 26 May 2004 14:47:15 -0700
"Chen, Kenneth W" <kenneth.w.chen@xxxxxxxxx> wrote:

> Could netif_schedule() take long time to run?

No, it's a series of a few atomic operations.

1) test_and_set_bit()
2) disable cpu interrupts
3) Link list insertion
4) Set a local-cpu flag
5) re-enable cpu interrupts
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/