]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/cpuset.c
[PATCH] Add __GFP_THISNODE to avoid fallback to other nodes and ignore cpuset/memory...
[karo-tx-linux.git] / kernel / cpuset.c
index 4ea6f0dc2fc568b35ab147903de0a8e31d9e8429..76940361273e953081c751e5ffde51552bfcf69e 100644 (file)
@@ -2316,7 +2316,7 @@ int __cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask)
        const struct cpuset *cs;        /* current cpuset ancestors */
        int allowed;                    /* is allocation in zone z allowed? */
 
-       if (in_interrupt())
+       if (in_interrupt() || (gfp_mask & __GFP_THISNODE))
                return 1;
        node = z->zone_pgdat->node_id;
        might_sleep_if(!(gfp_mask & __GFP_HARDWALL));