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
This commit is contained in:
Jeff Roberson 2020-02-13 21:10:17 +00:00
parent 543117bed8
commit 1f2a6b8501
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357884

View File

@ -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);
}
/*