linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the tip tree with the slab tree
@ 2009-06-16  5:46 Stephen Rothwell
  2009-06-16  5:48 ` Pekka Enberg
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2009-06-16  5:46 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra
  Cc: linux-next, linux-kernel, Nick Piggin, Pekka Enberg,
	Christoph Lameter, Vegard Nossum

Hi all,

Today's linux-next merge of the tip tree got a conflict in mm/slub.c
between commit 964cf35c88f93b4927dbc4e950dfa4d880c7f9d1 ("SLUB: Fix early
boot GFP_DMA allocations") from the slab tree and commit
18fd427debcf37c06917b55295df682fd05fee76 ("slub: add hooks for
kmemcheck") from the tip tree.

I fixed it up (see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc mm/slub.c
index 3976098,73fb7d1..0000000
--- a/mm/slub.c
+++ b/mm/slub.c
@@@ -2700,18 -2657,10 +2726,18 @@@ static noinline struct kmem_cache *dma_
  			 (unsigned int)realsize);
  	s = kmalloc(kmem_size, flags & ~SLUB_DMA);
  
 +	/*
 +	 * Must defer sysfs creation to a workqueue because we don't know
 +	 * what context we are called from. Before sysfs comes up, we don't
 +	 * need to do anything because our sysfs initcall will start by
 +	 * adding all existing slabs to sysfs.
 +	 */
- 	slabflags = SLAB_CACHE_DMA;
++	slabflags = SLAB_CACHE_DMA | SLAB_NOTRACK;
 +	if (slab_state >= SYSFS)
 +		slabflags |= __SYSFS_ADD_DEFERRED;
 +
  	if (!s || !text || !kmem_cache_open(s, flags, text,
 -			realsize, ARCH_KMALLOC_MINALIGN,
 -			SLAB_CACHE_DMA|SLAB_NOTRACK|__SYSFS_ADD_DEFERRED,
 -			NULL)) {
 +			realsize, ARCH_KMALLOC_MINALIGN, slabflags, NULL)) {
  		kfree(s);
  		kfree(text);
  		goto unlock_out;

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <20090706144051.06d079a5.sfr@canb.auug.org.au>]
* linux-next: manual merge of the tip tree with the slab tree
@ 2010-09-23  3:44 Stephen Rothwell
  2010-09-23  9:33 ` Pekka Enberg
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2010-09-23  3:44 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra
  Cc: linux-next, linux-kernel, Tejun Heo, Pekka Enberg,
	Christoph Lameter

Hi all,

Today's linux-next merge of the tip tree got a conflict in
include/linux/percpu.h between commit
6fc80ef491b981f59233beaf6aeaccc0c947031d ("percpu: use percpu allocator
on UP too") from the slab tree and commit
8b8e2ec1eeca7f6941bc81cefc9663018d6ceb57 ("percpu: Add {get,put}
_cpu_ptr") from the tip tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc include/linux/percpu.h
index aeeeef1,0eb5083..0000000
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@@ -39,8 -39,19 +39,17 @@@
  	preempt_enable();				\
  } while (0)
  
+ #define get_cpu_ptr(var) ({				\
+ 	preempt_disable();				\
+ 	this_cpu_ptr(var); })
+ 
+ #define put_cpu_ptr(var) do {				\
+ 	(void)(var);					\
+ 	preempt_enable();				\
+ } while (0)
+ 
 -#ifdef CONFIG_SMP
 -
  /* minimum unit size, also is the maximum supported allocation size */
 -#define PCPU_MIN_UNIT_SIZE		PFN_ALIGN(64 << 10)
 +#define PCPU_MIN_UNIT_SIZE		PFN_ALIGN(32 << 10)
  
  /*
   * Percpu allocator can serve percpu allocations before slab is

^ permalink raw reply	[flat|nested] 11+ messages in thread
* linux-next: manual merge of the tip tree with the slab tree
@ 2012-06-21  3:48 Stephen Rothwell
  2012-06-21  7:24 ` David Rientjes
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Rothwell @ 2012-06-21  3:48 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra
  Cc: linux-next, linux-kernel, Andi Kleen, David Rientjes,
	Christoph Lameter, KOSAKI Motohiro, David Mackey, Pekka Enberg

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

Hi all,

Today's linux-next merge of the tip tree got conflicts in mm/slab.c and
mm/slub.c between commit e7b691b085fd ("slab/mempolicy: always use local
policy from interrupt context") from the slab tree and commit
2ab41dd59922 ("mm: Optimize put_mems_allowed() usage") from the tip tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc mm/slab.c
index dd607a8,5070f96..0000000
--- a/mm/slab.c
+++ b/mm/slab.c
@@@ -3341,8 -3367,8 +3341,8 @@@ static void *fallback_alloc(struct kmem
  	local_flags = flags & (GFP_CONSTRAINT_MASK|GFP_RECLAIM_MASK);
  
  retry_cpuset:
- 	cpuset_mems_cookie = get_mems_allowed();
+ 	cpuset_mems_cookie = read_mems_allowed_begin();
 -	zonelist = node_zonelist(slab_node(current->mempolicy), flags);
 +	zonelist = node_zonelist(slab_node(), flags);
  
  retry:
  	/*
diff --cc mm/slub.c
index f96d8bc,fb2ef09..0000000
--- a/mm/slub.c
+++ b/mm/slub.c
@@@ -1616,8 -1616,8 +1616,8 @@@ static void *get_any_partial(struct kme
  		return NULL;
  
  	do {
- 		cpuset_mems_cookie = get_mems_allowed();
+ 		cpuset_mems_cookie = read_mems_allowed_begin();
 -		zonelist = node_zonelist(slab_node(current->mempolicy), flags);
 +		zonelist = node_zonelist(slab_node(), flags);
  		for_each_zone_zonelist(zone, z, zonelist, high_zoneidx) {
  			struct kmem_cache_node *n;
  

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-06-21  7:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16  5:46 linux-next: manual merge of the tip tree with the slab tree Stephen Rothwell
2009-06-16  5:48 ` Pekka Enberg
2009-06-16  7:44   ` Ingo Molnar
2009-06-16  7:46     ` Pekka Enberg
     [not found] <20090706144051.06d079a5.sfr@canb.auug.org.au>
2009-07-06  8:01 ` Pekka Enberg
     [not found] ` <20090914155219.13118819.sfr@canb.auug.org.au>
2009-09-14  6:35   ` Pekka Enberg
  -- strict thread matches above, loose matches on Subject: below --
2010-09-23  3:44 Stephen Rothwell
2010-09-23  9:33 ` Pekka Enberg
2010-09-23  9:46   ` Tejun Heo
2012-06-21  3:48 Stephen Rothwell
2012-06-21  7:24 ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).