diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2574,7 +2574,7 @@ static inline void *____cache_alloc(kmem_cache_t *cachep, gfp_t flags) | |||
2574 | struct array_cache *ac; | 2574 | struct array_cache *ac; |
2575 | 2575 | ||
2576 | #ifdef CONFIG_NUMA | 2576 | #ifdef CONFIG_NUMA |
2577 | if (current->mempolicy) { | 2577 | if (unlikely(current->mempolicy && !in_interrupt())) { |
2578 | int nid = slab_node(current->mempolicy); | 2578 | int nid = slab_node(current->mempolicy); |
2579 | 2579 | ||
2580 | if (nid != numa_node_id()) | 2580 | if (nid != numa_node_id()) |