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:
parent
543117bed8
commit
1f2a6b8501
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357884
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user