aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_smr.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2020-02-13 21:10:17 +0000
committerJeff Roberson <jeff@FreeBSD.org>2020-02-13 21:10:17 +0000
commit1f2a6b8501e6cc5c2828a253faabe6959c0949ca (patch)
treebc3d4c027d3ce9174d2509b93614b88610fefb03 /sys/kern/subr_smr.c
parent543117bed857cfb85e3fa4d9b16df7bcba55cc52 (diff)
downloadsrc-1f2a6b8501e6cc5c2828a253faabe6959c0949ca.tar.gz
src-1f2a6b8501e6cc5c2828a253faabe6959c0949ca.zip
Since r357804 pcpu zones are required to use zalloc_pcpu(). Prior to this
it was only required if you were zeroing. Switch to these interfaces. Reviewed by: mjg
Notes
Notes: svn path=/head/; revision=357884
Diffstat (limited to 'sys/kern/subr_smr.c')
-rw-r--r--sys/kern/subr_smr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_smr.c b/sys/kern/subr_smr.c
index 1ea7e5d871f0..816e68966029 100644
--- a/sys/kern/subr_smr.c
+++ b/sys/kern/subr_smr.c
@@ -414,7 +414,7 @@ smr_create(const char *name)
int i;
s = uma_zalloc(smr_shared_zone, M_WAITOK);
- smr = uma_zalloc(smr_zone, M_WAITOK);
+ smr = uma_zalloc_pcpu(smr_zone, M_WAITOK);
s->s_name = name;
s->s_rd_seq = s->s_wr_seq = SMR_SEQ_INIT;
@@ -436,7 +436,7 @@ smr_destroy(smr_t smr)
smr_synchronize(smr);
uma_zfree(smr_shared_zone, smr->c_shared);
- uma_zfree(smr_zone, smr);
+ uma_zfree_pcpu(smr_zone, smr);
}
/*