aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/multilist.h
diff options
context:
space:
mode:
authorAlexander Motin <[email protected]>2021-06-10 12:42:31 -0400
committerGitHub <[email protected]>2021-06-10 10:42:31 -0600
commitffdf019cb317b16109ec74ae199d4253a6662f5a (patch)
treeb30e19ee6488d623e3680867cff19e17d7ce1b71 /include/sys/multilist.h
parenteec5ba113e1d285d445333079a3e8184872ad00a (diff)
Re-embed multilist_t storage
This commit partially reverts changes to multilists in PR 7968 (multi-threaded spa-sync()) and adds some cache line alignments to separate read-only multilists and heavily modified refcount's to different cache lines. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored-by: iXsystems, Inc. Closes #12158
Diffstat (limited to 'include/sys/multilist.h')
-rw-r--r--include/sys/multilist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/multilist.h b/include/sys/multilist.h
index 0c7b4075d..26f37c37a 100644
--- a/include/sys/multilist.h
+++ b/include/sys/multilist.h
@@ -71,8 +71,9 @@ struct multilist {
multilist_sublist_index_func_t *ml_index_func;
};
+void multilist_create(multilist_t *, size_t, size_t,
+ multilist_sublist_index_func_t *);
void multilist_destroy(multilist_t *);
-multilist_t *multilist_create(size_t, size_t, multilist_sublist_index_func_t *);
void multilist_insert(multilist_t *, void *);
void multilist_remove(multilist_t *, void *);