solaris: Use pool_cache_reclaim, not pool_cache_invalidate.
pool_cache_invalidate invalidates cached objects, but doesn't return any backing pages to the underlying page allocator. pool_cache_reclaim does pool_cache_invalidate _and_ reutrns backing pages to the underlying page alloator, so it is actually useful for the page daemon to do when trying to free memory. PR kern/57558 XXX pullup-10 XXX pullup-9 XXX pullup-8 (by patch to kmem.h instead of kmem.c)
This commit is contained in:
parent
c449af8dd7
commit
8ba4214c54
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kmem.c,v 1.3 2020/11/11 03:31:04 chs Exp $ */
|
||||
/* $NetBSD: kmem.c,v 1.4 2023/09/09 00:14:16 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2017 The NetBSD Foundation, Inc.
|
||||
|
@ -123,7 +123,7 @@ void
|
|||
kmem_cache_reap_now(kmem_cache_t *km)
|
||||
{
|
||||
|
||||
pool_cache_invalidate(km->km_pool);
|
||||
pool_cache_reclaim(km->km_pool);
|
||||
}
|
||||
|
||||
#undef kmem_alloc
|
||||
|
|
Loading…
Reference in New Issue