summaryrefslogtreecommitdiff
path: root/ipc/util.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-04-07 19:12:12 -0700
committerDavid S. Miller <davem@davemloft.net>2019-04-07 19:12:12 -0700
commit9186c90bbb9525f46eddb590be26c749b5b1def7 (patch)
treeb2fc4e6c9902041bcdb4c8bfc44d2d5d3040088c /ipc/util.c
parent1e045a62eea6a60f0463b01f72256a5ba483da1c (diff)
parent149212f07856b25a9d342bfd6d736519b2ef66dc (diff)
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>
Diffstat (limited to 'ipc/util.c')
-rw-r--r--ipc/util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ipc/util.c b/ipc/util.c
index 0af05752969f..095274a871f8 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -101,7 +101,6 @@ static const struct rhashtable_params ipc_kht_params = {
.head_offset = offsetof(struct kern_ipc_perm, khtnode),
.key_offset = offsetof(struct kern_ipc_perm, key),
.key_len = FIELD_SIZEOF(struct kern_ipc_perm, key),
- .locks_mul = 1,
.automatic_shrinking = true,
};