Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18912
b: refs/heads/master
c: 86c562a
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jan 19, 2006
1 parent e8906c1 commit ba947c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc85da15d42b0efc792b0f5eab774dc5dbc1ceec
refs/heads/master: 86c562a9d6683063e071692fe14e0a18e64ee1be
3 changes: 0 additions & 3 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,9 +982,6 @@ static unsigned interleave_nodes(struct mempolicy *policy)
*/
unsigned slab_node(struct mempolicy *policy)
{
if (in_interrupt())
return numa_node_id();

switch (policy->policy) {
case MPOL_INTERLEAVE:
return interleave_nodes(policy);
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,7 @@ static inline void *____cache_alloc(kmem_cache_t *cachep, gfp_t flags)
struct array_cache *ac;

#ifdef CONFIG_NUMA
if (current->mempolicy) {
if (unlikely(current->mempolicy && !in_interrupt())) {
int nid = slab_node(current->mempolicy);

if (nid != numa_node_id())
Expand Down

0 comments on commit ba947c1

Please sign in to comment.