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


Groups > linux.kernel > #1633700

Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL

From Wei Yang <richard.weiyang@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL
Date 2017-05-01 17:50 +0200
Message-ID <tClKh-2vD-3@gated-at.bofh.it> (permalink)
References <tBVmO-2D4-1@gated-at.bofh.it> <tBVmP-2D4-39@gated-at.bofh.it> <tC9zs-3ad-5@gated-at.bofh.it> <tCeSt-6Jw-1@gated-at.bofh.it> <tCkEy-1S6-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, May 01, 2017 at 07:39:30AM -0700, Matthew Wilcox wrote:
>On Mon, May 01, 2017 at 04:20:05PM +0800, Wei Yang wrote:
>> I have tried to replace the code with slub_cpu_partial(), it works fine on
>> most of cases except two:
>> 
>> 1. slub_cpu_partial(c) = page->next;
>
>New accessor: slub_set_cpu_partial(c, p)
>
>> 2. page = READ_ONCE(slub_cpu_partial(c));
>
>OK, that one I haven't seen an existing pattern for yet.
>slub_cpu_partial_read_once(c)?

Thanks~ You are really a genius.

-- 
Wei Yang
Help you, Help me

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


Thread

[PATCH 0/3] try to save some memory for kmem_cache in some cases Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
  [PATCH 3/3] mm/slub: wrap kmem_cache->cpu_partial in config CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
    Re: [PATCH 3/3] mm/slub: wrap kmem_cache->cpu_partial in config  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 17:50 +0200
  [PATCH 1/3] mm/slub: pack red_left_pad with another int to save a word Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
  [PATCH 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-04-30 13:40 +0200
    Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Matthew Wilcox <willy@infradead.org> - 2017-05-01 04:50 +0200
      Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 09:50 +0200
      Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 10:30 +0200
        Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Matthew Wilcox <willy@infradead.org> - 2017-05-01 16:40 +0200
          Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in  CONFIG_SLUB_CPU_PARTIAL Wei Yang <richard.weiyang@gmail.com> - 2017-05-01 17:50 +0200
  Re: [PATCH 0/3] try to save some memory for kmem_cache in some  cases Christoph Lameter <cl@linux.com> - 2017-04-30 23:30 +0200

csiph-web