]> git.baikalelectronics.ru Git - kernel.git/commit
net: wrong test in inet_ehash_locks_alloc()
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 28 Jan 2009 01:45:10 +0000 (17:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2009 01:45:10 +0000 (17:45 -0800)
commit483c1857ec4d673e8470c01645c4e0ec276dbe5f
treea389198ade72eae6aa9c1cd3a44cdcc6935f6996
parent427c881468060b4f53c17106198393e0b2b52f1d
net: wrong test in inet_ehash_locks_alloc()

In commit af6a41a328a71fabad6177722d1baf0a6f7a361a (net: convert
TCP/DCCP ehash rwlocks to spinlocks), I forgot to change one
occurrence of rwlock_t to spinlock_t

I believe sizeof(raw_spinlock_t) might be > 0 on !CONFIG_SMP if
CONFIG_DEBUG_SPINLOCK while sizeof(raw_rwlock_t) should be 0 in this
case.

Fortunatly, CONFIG_DEBUG_SPINLOCK adds fields to both spinlock_t and
rwlock_t, but at this might change in the future (being able to debug
spinlocks but not rwlocks for example), better to be safe.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h