]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ip6_queue: rwlock to spinlock conversion
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 9 Jun 2010 14:25:08 +0000 (16:25 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 9 Jun 2010 14:25:08 +0000 (16:25 +0200)
commitdf8ffb2b2c8c9fcbcda7e0eb3c5c9c58713ef1b4
tree58b3934b3b2ef3c739cd4a77b08a809d0290be7e
parentbefd07a591f2bbef821c68a86f9b4f1f1de77b62
netfilter: ip6_queue: rwlock to spinlock conversion

Converts queue_lock rwlock to a spinlock.

(readlocked part can be changed by reads of integer values)

One atomic operation instead of four per ipq_enqueue_packet() call.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/ip6_queue.c