diff options
author | Andi Kleen <ak@muc.de> | 2005-07-27 20:43:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-28 01:25:52 +0200 |
commit | 90c5029e471636f21221bf66b9a46ada2ab79a22 (patch) | |
tree | b3a658d77b16fcecdc3c18bfe6eef679e203b757 /lib/dump_stack.c | |
parent | [PATCH] jsm: warning fixes (diff) | |
download | linux-90c5029e471636f21221bf66b9a46ada2ab79a22.tar.xz linux-90c5029e471636f21221bf66b9a46ada2ab79a22.zip |
[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>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions