Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1516531
| From | Christoph Lameter <cl@linux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB |
| Date | 2016-11-07 20:30 +0100 |
| Message-ID | <sAXMd-7uI-15@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <syulk-EP-11@gated-at.bofh.it> <sz6gV-8vT-1@gated-at.bofh.it> <szeo9-55A-5@gated-at.bofh.it> <szwXL-lr-17@gated-at.bofh.it> <sAXjc-74X-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 7 Nov 2016, Thomas Garnier wrote: > I am not sure that is possible. kmem_cache_create currently check for > possible alias, I assume that it goes against what memcg tries to do. What does aliasing have to do with this? The aliases must have the same flags otherwise the caches would not have been merged. > Separate the changes in two patches might make sense: > > 1) Fix the original bug by masking the flags passed to create_cache > 2) Add flags check in kmem_cache_create. > > Does it make sense? Sure. > > I also want to make sure that there are no other callers that specify > > extraneou flags while we are at it. > I will review as many as I can but we might run into surprises (quick > boot on defconfig didn't show anything). That's why having two > different patches might be useful. These surprises can be caught later ... Just make sure that the core works fine with this. You cannot audit all drivers.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Thomas Garnier <thgarnie@google.com> - 2016-10-31 19:40 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB David Rientjes <rientjes@google.com> - 2016-11-01 00:40 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Thomas Garnier <thgarnie@google.com> - 2016-11-02 17:10 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB David Rientjes <rientjes@google.com> - 2016-11-03 01:50 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Christoph Lameter <cl@linux.com> - 2016-11-03 21:40 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Thomas Garnier <thgarnie@google.com> - 2016-11-07 20:00 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Christoph Lameter <cl@linux.com> - 2016-11-07 20:30 +0100
Re: [PATCH v2] memcg: Prevent memcg caches to be both OFF_SLAB & OBJFREELIST_SLAB Thomas Garnier <thgarnie@google.com> - 2016-11-07 21:00 +0100
csiph-web