[lkml]   [2006]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 2.6.16-mm2 1/4] sched_domain - handle kmalloc failure
    Andrew Morton wrote:
    > Nick Piggin <> wrote:

    >>In that case, would it be simpler just
    >>to add a __GFP_NOFAIL here and forget about it?
    > No new __GFP_NOFAILs, please.

    It isn't a new one as such. It would simply make explicit the fact
    that this code really can't handle allocation failures, and it is
    presently depending on the allocator implementation to work.

    > The fact that the CPU addition will succeed, but it'll run forever more
    > with load balancing disabled still seems Just Wrong to me. We should
    > either completely succeed or completely fail.

    Yes. But we shouldn't partially fail and leave the machine crippled.

    Hence, __GFP_NOFAIL as a good marker for someone who gets keen and
    comes along to fix it up properly. If it were trivial to fix it, I
    wouldn't suggest adding the __GFP_NOFAIL.

    SUSE Labs, Novell Inc.
    Send instant messages to your online friends

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-04-03 14:39    [W:0.020 / U:69.248 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site