netfilter: ip_queue: rwlock to spinlock conversion
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 9 Jun 2010 13:47:41 +0000 (15:47 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 9 Jun 2010 13:47:41 +0000 (15:47 +0200)
commit5756d346c7cdefcd84a8ac4901167cdfb5447b69
tree4ac2c15adef1bd1e62292815a04ce7c8aefb765a
parent2bf074825403e0e0d623bac7573580773b78abef
netfilter: ip_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/ipv4/netfilter/ip_queue.c