Allow equality in this assertion.

This can happen if we lose the race mentioned in percpu_cpu_swap.
This commit is contained in:
riastradh 2019-12-05 03:21:08 +00:00
parent 5132e01e56
commit de3acc9d56
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_percpu.c,v 1.19 2019/09/18 15:33:32 kamil Exp $ */
/* $NetBSD: subr_percpu.c,v 1.20 2019/12/05 03:21:08 riastradh Exp $ */
/*-
* Copyright (c)2007,2008 YAMAMOTO Takashi,
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.19 2019/09/18 15:33:32 kamil Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.20 2019/12/05 03:21:08 riastradh Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@ -149,7 +149,7 @@ percpu_cpu_enlarge(size_t size)
where = xc_unicast(0, percpu_cpu_swap, ci, &pcc, ci);
xc_wait(where);
}
KASSERT(pcc.pcc_size < size);
KASSERT(pcc.pcc_size <= size);
if (pcc.pcc_data != NULL) {
kmem_free(pcc.pcc_data, pcc.pcc_size);
}