]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: key_hashfn() must return full hash value
authorThomas Graf <tgraf@suug.ch>
Thu, 5 Feb 2015 01:03:31 +0000 (02:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2015 23:18:34 +0000 (15:18 -0800)
commit8c50141e0d5dbabd58be445f3391307497a38cc7
tree8d22b2be3dd981b8a17bf80d9d6f4d5c095bf1df
parent79a1d043993237782319a83727f76d1803515453
rhashtable: key_hashfn() must return full hash value

The value computed by key_hashfn() is used by rhashtable_lookup_compare()
to traverse both tables during a resize. key_hashfn() must therefore
return the hash value without the buckets mask applied so it can be
masked to the size of each individual table.

Fixes: 2ece89f2650a ("rhashtable: Per bucket locks & deferred expansion/shrinking")
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c