Merge pull request #372 from mmichal10/memory-find

Alloc rpool with strict memory requirements
This commit is contained in:
Robert Baldyga 2020-03-30 13:30:52 +02:00 committed by GitHub
commit 299d1211ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ void *_cas_alloc_page_rpool(void *allocator_ctx, int cpu)
{
struct page *page;
page = alloc_page(GFP_KERNEL);
page = alloc_page(GFP_NOIO | __GFP_NORETRY);
if (!page)
return NULL;

View File

@ -69,7 +69,7 @@ static void *env_allocator_new_rpool(void *allocator_ctx, int cpu)
env_allocator *allocator = (env_allocator*) allocator_ctx;
struct _env_allocator_item *item;
item = kmem_cache_zalloc(allocator->kmem_cache, GFP_KERNEL);
item = kmem_cache_zalloc(allocator->kmem_cache, GFP_NOIO | __GFP_NORETRY);
if (item) {
item->from_rpool = 1;