Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566276

Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context
Date 2017-01-25 03:10 +0100
Message-ID <t3lc5-401-11@gated-at.bofh.it> (permalink)
References (5 earlier) <t2T69-2tK-13@gated-at.bofh.it> <t2TSy-2N8-21@gated-at.bofh.it> <t2VUm-4rY-19@gated-at.bofh.it> <t3bPs-6sB-7@gated-at.bofh.it> <t3jai-2yy-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Tue, Jan 24, 2017 at 11:54:57PM +0000, Mel Gorman wrote:
> @@ -2402,24 +2415,16 @@ void drain_all_pages(struct zone *zone)
>  			cpumask_clear_cpu(cpu, &cpus_with_pcps);
>  	}
>  
> +	for_each_cpu(cpu, &cpus_with_pcps) {
> +		struct work_struct *work = per_cpu_ptr(&pcpu_drain, cpu);
> +		INIT_WORK(work, drain_local_pages_wq);
> +		schedule_work_on(cpu, work);
>  	}
> +	for_each_cpu(cpu, &cpus_with_pcps)
> +		flush_work(per_cpu_ptr(&pcpu_drain, cpu));
> +
>  	put_online_cpus();
> +	mutex_unlock(&pcpu_drain_mutex);

Looks good to me.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] Use per-cpu allocator for !irq requests and prepare for a bulk allocator v4 Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 10:40 +0100
  [PATCH 2/4] mm, page_alloc: Split alloc_pages_nodemask Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 10:40 +0100
  [PATCH 1/4] mm, page_alloc: Split buffered_rmqueue Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 10:40 +0100
    Re: [PATCH 1/4] mm, page_alloc: Split buffered_rmqueue Jesper Dangaard Brouer <brouer@redhat.com> - 2017-01-17 19:10 +0100
      Re: [PATCH 1/4] mm, page_alloc: Split buffered_rmqueue Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 21:40 +0100
        Re: [PATCH 1/4] mm, page_alloc: Split buffered_rmqueue Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 22:10 +0100
          Re: [PATCH 1/4] mm, page_alloc: Split buffered_rmqueue Vlastimil Babka <vbabka@suse.cz> - 2017-01-17 22:30 +0100
  [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 10:40 +0100
    Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Vlastimil Babka <vbabka@suse.cz> - 2017-01-20 15:30 +0100
      Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Mel Gorman <mgorman@techsingularity.net> - 2017-01-20 16:40 +0100
        Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Petr Mladek <pmladek@suse.com> - 2017-01-23 17:30 +0100
          Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Mel Gorman <mgorman@techsingularity.net> - 2017-01-23 18:00 +0100
        Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Tejun Heo <tj@kernel.org> - 2017-01-23 18:10 +0100
          Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Mel Gorman <mgorman@techsingularity.net> - 2017-01-23 21:10 +0100
            Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Tejun Heo <tj@kernel.org> - 2017-01-23 22:00 +0100
              Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Mel Gorman <mgorman@techsingularity.net> - 2017-01-24 00:10 +0100
                Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Tejun Heo <tj@kernel.org> - 2017-01-24 17:10 +0100
                Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Mel Gorman <mgorman@techsingularity.net> - 2017-01-25 01:00 +0100
                Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Tejun Heo <tj@kernel.org> - 2017-01-25 03:10 +0100
                Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Mel Gorman <mgorman@techsingularity.net> - 2017-01-25 09:40 +0100
    Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue  context Vlastimil Babka <vbabka@suse.cz> - 2017-01-24 12:10 +0100
  [PATCH 4/4] mm, page_alloc: Only use per-cpu allocator for irq-safe requests Mel Gorman <mgorman@techsingularity.net> - 2017-01-17 10:40 +0100
    Re: [PATCH 4/4] mm, page_alloc: Only use per-cpu allocator for  irq-safe requests Vlastimil Babka <vbabka@suse.cz> - 2017-01-20 16:10 +0100
      Re: [PATCH 4/4] mm, page_alloc: Only use per-cpu allocator for  irq-safe requests Mel Gorman <mgorman@techsingularity.net> - 2017-01-23 12:20 +0100

csiph-web