* [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-25 11:07 ` Ezequiel Garcia
0 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-25 11:07 UTC (permalink / raw)
To: kernel-janitors, linux-mm; +Cc: fengguang.wu, Ezequiel Garcia, Pekka Enberg
The bug was introduced in commit 4052147c0afa
"mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
Cc: Pekka Enberg <penberg@kernel.org>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
mm/slab.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mm/slab.c b/mm/slab.c
index ca3849f..3409ead 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3862,10 +3862,10 @@ void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid)
EXPORT_SYMBOL(kmem_cache_alloc_node);
#ifdef CONFIG_TRACING
-void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
+void *kmem_cache_alloc_node_trace(size_t size,
+ struct kmem_cache *cachep,
gfp_t flags,
- int nodeid,
- size_t size)
+ int nodeid)
{
void *ret;
@@ -3887,7 +3887,7 @@ __do_kmalloc_node(size_t size, gfp_t flags, int node, unsigned long caller)
cachep = kmem_find_general_cachep(size, flags);
if (unlikely(ZERO_OR_NULL_PTR(cachep)))
return cachep;
- return kmem_cache_alloc_node_trace(cachep, flags, node, size);
+ return kmem_cache_alloc_node_trace(size, cachep, flags, node);
}
#if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_TRACING)
--
1.7.8.6
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 18+ messages in thread* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
2012-09-25 11:07 ` Ezequiel Garcia
@ 2012-09-26 4:18 ` David Rientjes
-1 siblings, 0 replies; 18+ messages in thread
From: David Rientjes @ 2012-09-26 4:18 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: kernel-janitors, linux-mm, fengguang.wu, Pekka Enberg
On Tue, 25 Sep 2012, Ezequiel Garcia wrote:
> The bug was introduced in commit 4052147c0afa
> "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
>
This isn't a candidate for kernel-janitors@vger.kernel.org, these are
patches that are one of Pekka's branches and would never make it to Linus'
tree in this form.
> Cc: Pekka Enberg <penberg@kernel.org>
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
So now we have this for SLAB:
extern void *kmem_cache_alloc_node_trace(size_t size,
struct kmem_cache *cachep,
gfp_t flags,
int nodeid);
and this for SLUB:
extern void *kmem_cache_alloc_node_trace(struct kmem_cache *s,
gfp_t gfpflags,
int node, size_t size);
Would you like to send a follow-up patch to make these the same? (My
opinion is that the SLUB variant is the correct order.)
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-26 4:18 ` David Rientjes
0 siblings, 0 replies; 18+ messages in thread
From: David Rientjes @ 2012-09-26 4:18 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: kernel-janitors, linux-mm, fengguang.wu, Pekka Enberg
On Tue, 25 Sep 2012, Ezequiel Garcia wrote:
> The bug was introduced in commit 4052147c0afa
> "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
>
This isn't a candidate for kernel-janitors@vger.kernel.org, these are
patches that are one of Pekka's branches and would never make it to Linus'
tree in this form.
> Cc: Pekka Enberg <penberg@kernel.org>
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
So now we have this for SLAB:
extern void *kmem_cache_alloc_node_trace(size_t size,
struct kmem_cache *cachep,
gfp_t flags,
int nodeid);
and this for SLUB:
extern void *kmem_cache_alloc_node_trace(struct kmem_cache *s,
gfp_t gfpflags,
int node, size_t size);
Would you like to send a follow-up patch to make these the same? (My
opinion is that the SLUB variant is the correct order.)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
2012-09-26 4:18 ` David Rientjes
@ 2012-09-26 6:34 ` Dan Carpenter
-1 siblings, 0 replies; 18+ messages in thread
From: Dan Carpenter @ 2012-09-26 6:34 UTC (permalink / raw)
To: David Rientjes
Cc: Ezequiel Garcia, kernel-janitors, linux-mm, fengguang.wu,
Pekka Enberg
On Tue, Sep 25, 2012 at 09:18:02PM -0700, David Rientjes wrote:
> On Tue, 25 Sep 2012, Ezequiel Garcia wrote:
>
> > The bug was introduced in commit 4052147c0afa
> > "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
> >
>
> This isn't a candidate for kernel-janitors@vger.kernel.org, these are
> patches that are one of Pekka's branches and would never make it to Linus'
> tree in this form.
kernel-janitors got CC'd because it was a compile problem. It stops
us from sending duplicate messages to people. It's surprising how
annoyed people get about duplicates instead of just ignoring the
second messages like sane individuals would.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-26 6:34 ` Dan Carpenter
0 siblings, 0 replies; 18+ messages in thread
From: Dan Carpenter @ 2012-09-26 6:34 UTC (permalink / raw)
To: David Rientjes
Cc: Ezequiel Garcia, kernel-janitors, linux-mm, fengguang.wu,
Pekka Enberg
On Tue, Sep 25, 2012 at 09:18:02PM -0700, David Rientjes wrote:
> On Tue, 25 Sep 2012, Ezequiel Garcia wrote:
>
> > The bug was introduced in commit 4052147c0afa
> > "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
> >
>
> This isn't a candidate for kernel-janitors@vger.kernel.org, these are
> patches that are one of Pekka's branches and would never make it to Linus'
> tree in this form.
kernel-janitors got CC'd because it was a compile problem. It stops
us from sending duplicate messages to people. It's surprising how
annoyed people get about duplicates instead of just ignoring the
second messages like sane individuals would.
regards,
dan carpenter
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
2012-09-26 4:18 ` David Rientjes
@ 2012-09-26 10:09 ` Ezequiel Garcia
-1 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-26 10:09 UTC (permalink / raw)
To: David Rientjes; +Cc: kernel-janitors, linux-mm, fengguang.wu, Pekka Enberg
Hi David,
On Wed, Sep 26, 2012 at 1:18 AM, David Rientjes <rientjes@google.com> wrote:
> On Tue, 25 Sep 2012, Ezequiel Garcia wrote:
>
>> The bug was introduced in commit 4052147c0afa
>> "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
>>
>
> This isn't a candidate for kernel-janitors@vger.kernel.org, these are
> patches that are one of Pekka's branches and would never make it to Linus'
> tree in this form.
>
>> Cc: Pekka Enberg <penberg@kernel.org>
>> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
>> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> Acked-by: David Rientjes <rientjes@google.com>
>
> So now we have this for SLAB:
>
> extern void *kmem_cache_alloc_node_trace(size_t size,
> struct kmem_cache *cachep,
> gfp_t flags,
> int nodeid);
>
> and this for SLUB:
>
> extern void *kmem_cache_alloc_node_trace(struct kmem_cache *s,
> gfp_t gfpflags,
> int node, size_t size);
>
> Would you like to send a follow-up patch to make these the same? (My
> opinion is that the SLUB variant is the correct order.)
Yes. I just asked Pekka to revert this patch altogether.
The original patch was meant to match SLAB and SLUB, and this
fix should maintain that. But instead I fix it the wrong way.
I'll send another one.
Sorry for the mess,
Ezequiel.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-26 10:09 ` Ezequiel Garcia
0 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-26 10:09 UTC (permalink / raw)
To: David Rientjes; +Cc: kernel-janitors, linux-mm, fengguang.wu, Pekka Enberg
Hi David,
On Wed, Sep 26, 2012 at 1:18 AM, David Rientjes <rientjes@google.com> wrote:
> On Tue, 25 Sep 2012, Ezequiel Garcia wrote:
>
>> The bug was introduced in commit 4052147c0afa
>> "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
>>
>
> This isn't a candidate for kernel-janitors@vger.kernel.org, these are
> patches that are one of Pekka's branches and would never make it to Linus'
> tree in this form.
>
>> Cc: Pekka Enberg <penberg@kernel.org>
>> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
>> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> Acked-by: David Rientjes <rientjes@google.com>
>
> So now we have this for SLAB:
>
> extern void *kmem_cache_alloc_node_trace(size_t size,
> struct kmem_cache *cachep,
> gfp_t flags,
> int nodeid);
>
> and this for SLUB:
>
> extern void *kmem_cache_alloc_node_trace(struct kmem_cache *s,
> gfp_t gfpflags,
> int node, size_t size);
>
> Would you like to send a follow-up patch to make these the same? (My
> opinion is that the SLUB variant is the correct order.)
Yes. I just asked Pekka to revert this patch altogether.
The original patch was meant to match SLAB and SLUB, and this
fix should maintain that. But instead I fix it the wrong way.
I'll send another one.
Sorry for the mess,
Ezequiel.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
2012-09-26 10:09 ` Ezequiel Garcia
@ 2012-09-26 10:42 ` Pekka Enberg
-1 siblings, 0 replies; 18+ messages in thread
From: Pekka Enberg @ 2012-09-26 10:42 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: David Rientjes, kernel-janitors, linux-mm, fengguang.wu
On Wed, Sep 26, 2012 at 1:09 PM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
> Yes. I just asked Pekka to revert this patch altogether.
> The original patch was meant to match SLAB and SLUB, and this
> fix should maintain that. But instead I fix it the wrong way.
>
> I'll send another one.
Okay, I'm now confused and somewhat unhappy. What commits do you want
me to nuke exactly?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-26 10:42 ` Pekka Enberg
0 siblings, 0 replies; 18+ messages in thread
From: Pekka Enberg @ 2012-09-26 10:42 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: David Rientjes, kernel-janitors, linux-mm, fengguang.wu
On Wed, Sep 26, 2012 at 1:09 PM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
> Yes. I just asked Pekka to revert this patch altogether.
> The original patch was meant to match SLAB and SLUB, and this
> fix should maintain that. But instead I fix it the wrong way.
>
> I'll send another one.
Okay, I'm now confused and somewhat unhappy. What commits do you want
me to nuke exactly?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
2012-09-26 10:42 ` Pekka Enberg
@ 2012-09-26 10:46 ` Ezequiel Garcia
-1 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-26 10:46 UTC (permalink / raw)
To: Pekka Enberg; +Cc: David Rientjes, kernel-janitors, linux-mm, fengguang.wu
On Wed, Sep 26, 2012 at 7:42 AM, Pekka Enberg <penberg@kernel.org> wrote:
> On Wed, Sep 26, 2012 at 1:09 PM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
>> Yes. I just asked Pekka to revert this patch altogether.
>> The original patch was meant to match SLAB and SLUB, and this
>> fix should maintain that. But instead I fix it the wrong way.
>>
>> I'll send another one.
>
> Okay, I'm now confused and somewhat unhappy. What commits do you want
> me to nuke exactly?
From your slab/tracing topic branch:
1e5965bf1f018cc30a4659fa3f1a40146e4276f6
mm/slab: Fix kmem_cache_alloc_node_trace() declaration
Thanks,
Ezequiel.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-26 10:46 ` Ezequiel Garcia
0 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-26 10:46 UTC (permalink / raw)
To: Pekka Enberg; +Cc: David Rientjes, kernel-janitors, linux-mm, fengguang.wu
On Wed, Sep 26, 2012 at 7:42 AM, Pekka Enberg <penberg@kernel.org> wrote:
> On Wed, Sep 26, 2012 at 1:09 PM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
>> Yes. I just asked Pekka to revert this patch altogether.
>> The original patch was meant to match SLAB and SLUB, and this
>> fix should maintain that. But instead I fix it the wrong way.
>>
>> I'll send another one.
>
> Okay, I'm now confused and somewhat unhappy. What commits do you want
> me to nuke exactly?
>From your slab/tracing topic branch:
1e5965bf1f018cc30a4659fa3f1a40146e4276f6
mm/slab: Fix kmem_cache_alloc_node_trace() declaration
Thanks,
Ezequiel.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
2012-09-25 11:07 ` Ezequiel Garcia
@ 2012-09-26 10:04 ` Ezequiel Garcia
-1 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-26 10:04 UTC (permalink / raw)
To: Pekka Enberg, kernel-janitors, linux-mm; +Cc: fengguang.wu, David Rientjes
Pekka,
On Tue, Sep 25, 2012 at 8:07 AM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
> The bug was introduced in commit 4052147c0afa
> "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
>
> Cc: Pekka Enberg <penberg@kernel.org>
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> ---
> mm/slab.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/mm/slab.c b/mm/slab.c
> index ca3849f..3409ead 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -3862,10 +3862,10 @@ void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid)
> EXPORT_SYMBOL(kmem_cache_alloc_node);
>
> #ifdef CONFIG_TRACING
> -void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
> +void *kmem_cache_alloc_node_trace(size_t size,
> + struct kmem_cache *cachep,
> gfp_t flags,
> - int nodeid,
> - size_t size)
> + int nodeid)
> {
> void *ret;
>
> @@ -3887,7 +3887,7 @@ __do_kmalloc_node(size_t size, gfp_t flags, int node, unsigned long caller)
> cachep = kmem_find_general_cachep(size, flags);
> if (unlikely(ZERO_OR_NULL_PTR(cachep)))
> return cachep;
> - return kmem_cache_alloc_node_trace(cachep, flags, node, size);
> + return kmem_cache_alloc_node_trace(size, cachep, flags, node);
> }
>
> #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_TRACING)
> --
Please revert this patch. This fix is wrong, I'll send a proper one.
Sorry for the mess,
Ezequiel.
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [PATCH] mm/slab: Fix kmem_cache_alloc_node_trace() declaration
@ 2012-09-26 10:04 ` Ezequiel Garcia
0 siblings, 0 replies; 18+ messages in thread
From: Ezequiel Garcia @ 2012-09-26 10:04 UTC (permalink / raw)
To: Pekka Enberg, kernel-janitors, linux-mm; +Cc: fengguang.wu, David Rientjes
Pekka,
On Tue, Sep 25, 2012 at 8:07 AM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
> The bug was introduced in commit 4052147c0afa
> "mm, slab: Match SLAB and SLUB kmem_cache_alloc_xxx_trace() prototype".
>
> Cc: Pekka Enberg <penberg@kernel.org>
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> ---
> mm/slab.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/mm/slab.c b/mm/slab.c
> index ca3849f..3409ead 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -3862,10 +3862,10 @@ void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid)
> EXPORT_SYMBOL(kmem_cache_alloc_node);
>
> #ifdef CONFIG_TRACING
> -void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
> +void *kmem_cache_alloc_node_trace(size_t size,
> + struct kmem_cache *cachep,
> gfp_t flags,
> - int nodeid,
> - size_t size)
> + int nodeid)
> {
> void *ret;
>
> @@ -3887,7 +3887,7 @@ __do_kmalloc_node(size_t size, gfp_t flags, int node, unsigned long caller)
> cachep = kmem_find_general_cachep(size, flags);
> if (unlikely(ZERO_OR_NULL_PTR(cachep)))
> return cachep;
> - return kmem_cache_alloc_node_trace(cachep, flags, node, size);
> + return kmem_cache_alloc_node_trace(size, cachep, flags, node);
> }
>
> #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_TRACING)
> --
Please revert this patch. This fix is wrong, I'll send a proper one.
Sorry for the mess,
Ezequiel.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 18+ messages in thread