]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Undo mempolicy shared policy rbtree microoptimization
authorAndi Kleen <ak@muc.de>
Wed, 27 Jul 2005 18:43:50 +0000 (11:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:25:52 +0000 (16:25 -0700)
commit90c5029e471636f21221bf66b9a46ada2ab79a22
treeb3a658d77b16fcecdc3c18bfe6eef679e203b757
parentc223695634fb360ed65e5a811161853a05e46962
[PATCH] Undo mempolicy shared policy rbtree microoptimization

All mempolicy changes must be inside the spinlock and readding the rb_erase
prevents a crash while doing:

> echo "1" > /tmp/numatest
> numactl --length=0x4000 --shm /tmp/numatest --localalloc
> numactl --length=0x2000 --offset=0 --shm /tmp/numatest --membind=0
> numactl --length=0x2000 --offset=0x2000 --shm /tmp/numatest --membind=1
> ipcs
> ipcrm -M "the_key_value_of_this_shm_area"

Based on a patch by John Blackwood

Cc: <john.blackwood@ccur.com>
Cc: <andrea@suse.de>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c