]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] kmalloc_node IRQ safety fix
authorAlok N Kataria <alokk@calsoftinc.com>
Wed, 28 Sep 2005 04:45:46 +0000 (21:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Sep 2005 14:46:42 +0000 (07:46 -0700)
commit6976980805566a99104ee1081ffa519d8384b6d5
treed505f231c23d415f2609c6bf0ef7c196503dc161
parentf693df0648494f7421307bb58ce665ab60ebae08
[PATCH] kmalloc_node IRQ safety fix

In kmalloc_node we are checking if the allocation is for the same node when
interrupts are "on".  This may lead to an allocation on another node than
intended.

This patch just shifts the check for the current node in __cache_alloc_node
when interrupts are disabled.

Signed-off-by: Alok N Kataria <alokk@calsoftinc.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c