Skip to content

Commit

Permalink
page_bench05: can use ___GFP_NORETRY again after fixing bug with __GF…
Browse files Browse the repository at this point in the history
…P_COMP
  • Loading branch information
netoptimizer committed Mar 2, 2017
1 parent 833dc34 commit 77a34fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions kernel/mm/bench/page_bench05_cross_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ MODULE_PARM_DESC(loops, "Iteration loops");
static int time_single_cpu_page_alloc_put(
struct time_bench_record *rec, void *data)
{
// gfp_t gfp_mask = (GFP_ATOMIC | ___GFP_NORETRY);
gfp_t gfp_mask = GFP_KERNEL;
gfp_t gfp_mask = (GFP_ATOMIC | ___GFP_NORETRY);
// gfp_t gfp_mask = GFP_KERNEL;
struct page *my_page;
int i;

Expand Down Expand Up @@ -159,8 +159,8 @@ static int time_cross_cpu_page_alloc_put(
struct time_bench_record *rec, void *data)
{
struct ptr_ring *queue = (struct ptr_ring*)data;
// gfp_t gfp_mask = (GFP_ATOMIC | ___GFP_NORETRY);
gfp_t gfp_mask = (GFP_KERNEL);
gfp_t gfp_mask = (GFP_ATOMIC | ___GFP_NORETRY);
// gfp_t gfp_mask = (GFP_KERNEL);
struct page *page, *npage;
uint64_t loops_cnt = 0;
int i;
Expand Down Expand Up @@ -223,8 +223,8 @@ static int time_cross_cpu_page_experiment1(
struct time_bench_record *rec, void *data)
{
struct ptr_ring *queue = (struct ptr_ring*)data;
// gfp_t gfp_mask = (GFP_ATOMIC | ___GFP_NORETRY);
gfp_t gfp_mask = (GFP_KERNEL);
gfp_t gfp_mask = (GFP_ATOMIC | ___GFP_NORETRY);
// gfp_t gfp_mask = (GFP_KERNEL);
struct page *page, *npage;
uint64_t loops_cnt = 0;
#define ARRAY_SZ 64
Expand Down Expand Up @@ -433,7 +433,7 @@ void noinline run_bench_cross_cpu_page_experiment1(
struct ptr_ring *queue;
cpumask_t cpumask;

run_or_return(bit_run_bench_cross_cpu_page_alloc_put);
run_or_return(bit_run_bench_cross_cpu_page_experiment1);

queue = kzalloc(sizeof(*queue), GFP_KERNEL);

Expand Down

0 comments on commit 77a34fa

Please sign in to comment.