[lkml]   [2009]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] cpumask: alloc blank cpumask left over
    On Sat, 6 Jun 2009 03:04:35 am Linus Torvalds wrote:
    > On Fri, 5 Jun 2009, Rusty Russell wrote:
    > > OK, here's what I've got in my tree. Ingo, I think this should go in the
    > > current -rc to avoid nasty bugs.
    > Why is the fix not to simply clear it in alloc?


    > and that
    > FIXME is bogus. The end of the allocation needs to be cleared regardless.

    Under these new semantics, yep. Before:
    alloc_cpumask_var(&mask, GFP_KERNEL);
    // New operator only goes to nr_cpu_ids bits.
    // Old operator uses all NR_CPUS bits.
    BUG_ON(cpus_weight(*mask) != 0);


     \ /
      Last update: 2009-06-07 01:47    [W:0.019 / U:1.772 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site