]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rhashtable-bitlocks'
authorDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 02:12:12 +0000 (19:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 02:12:12 +0000 (19:12 -0700)
commit348718f6dc848da25f3329dc9c55cb969300b45c
treeb2fc4e6c9902041bcdb4c8bfc44d2d5d3040088c
parentd18e37ae6105ca8b80009b97aff6354847afe5b1
parent7b8192616b5fa118d0579b979b2e02919b24c676
Merge branch 'rhashtable-bitlocks'

NeilBrown says:

====================
Convert rhashtable to use bitlocks

This series converts rhashtable to use a per-bucket bitlock
rather than a separate array of spinlocks.
This:
  reduces memory usage
  results in slightly fewer memory accesses
  slightly improves parallelism
  makes a configuration option unnecessary

The main change from previous version is to use a distinct type for
the pointer in the bucket which has a bit-lock in it.  This
helped find two places where rht_ptr() was missed, one
in  rhashtable_free_and_destroy() in print_ht in the test code.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>