Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-17 Thread kwon
> On Jan 18, 2017, at 7:54 AM, David Rientjes wrote: > > On Tue, 17 Jan 2017, kwon wrote: > diff --git a/mm/slab_common.c b/mm/slab_common.c index 1dfc209..2d30ace 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -744,7 +744,7 @@ void

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-17 Thread kwon
> On Jan 18, 2017, at 7:54 AM, David Rientjes wrote: > > On Tue, 17 Jan 2017, kwon wrote: > diff --git a/mm/slab_common.c b/mm/slab_common.c index 1dfc209..2d30ace 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -744,7 +744,7 @@ void kmem_cache_destroy(struct

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-17 Thread David Rientjes
On Tue, 17 Jan 2017, kwon wrote: > >> diff --git a/mm/slab_common.c b/mm/slab_common.c > >> index 1dfc209..2d30ace 100644 > >> --- a/mm/slab_common.c > >> +++ b/mm/slab_common.c > >> @@ -744,7 +744,7 @@ void kmem_cache_destroy(struct kmem_cache *s) > >>bool need_rcu_barrier = false; > >>

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-17 Thread David Rientjes
On Tue, 17 Jan 2017, kwon wrote: > >> diff --git a/mm/slab_common.c b/mm/slab_common.c > >> index 1dfc209..2d30ace 100644 > >> --- a/mm/slab_common.c > >> +++ b/mm/slab_common.c > >> @@ -744,7 +744,7 @@ void kmem_cache_destroy(struct kmem_cache *s) > >>bool need_rcu_barrier = false; > >>

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-16 Thread kwon
> On Jan 17, 2017, at 10:33 AM, Joonsoo Kim wrote: > > On Mon, Jan 16, 2017 at 04:04:59PM +0900, Kyunghwan Kwon wrote: >> The first kmem_cache created at booting up is supposed neither mergeable >> nor destroyable but was possible to destroy. So prevent it. >> >>

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-16 Thread kwon
> On Jan 17, 2017, at 10:33 AM, Joonsoo Kim wrote: > > On Mon, Jan 16, 2017 at 04:04:59PM +0900, Kyunghwan Kwon wrote: >> The first kmem_cache created at booting up is supposed neither mergeable >> nor destroyable but was possible to destroy. So prevent it. >> >> Signed-off-by: Kyunghwan Kwon

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-16 Thread Joonsoo Kim
On Mon, Jan 16, 2017 at 04:04:59PM +0900, Kyunghwan Kwon wrote: > The first kmem_cache created at booting up is supposed neither mergeable > nor destroyable but was possible to destroy. So prevent it. > > Signed-off-by: Kyunghwan Kwon > --- > mm/slab_common.c | 2 +- > 1 file

Re: [PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-16 Thread Joonsoo Kim
On Mon, Jan 16, 2017 at 04:04:59PM +0900, Kyunghwan Kwon wrote: > The first kmem_cache created at booting up is supposed neither mergeable > nor destroyable but was possible to destroy. So prevent it. > > Signed-off-by: Kyunghwan Kwon > --- > mm/slab_common.c | 2 +- > 1 file changed, 1

[PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-15 Thread Kyunghwan Kwon
The first kmem_cache created at booting up is supposed neither mergeable nor destroyable but was possible to destroy. So prevent it. Signed-off-by: Kyunghwan Kwon --- mm/slab_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slab_common.c

[PATCH] slab: add a check for the first kmem_cache not to be destroyed

2017-01-15 Thread Kyunghwan Kwon
The first kmem_cache created at booting up is supposed neither mergeable nor destroyable but was possible to destroy. So prevent it. Signed-off-by: Kyunghwan Kwon --- mm/slab_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index