[lkml]   [2006]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 01/03] Cpuset: might sleep checking zones allowed fix
    Andrew wrote:
    > I'd have thought that if all the callers get their __GFP_HARDWALLS correct
    > then that fishy-looking in_interrupt() test in __cpuset_zone_allowed()
    > could be removed?

    The in_interrupt() is needed because the cpuset code really does give a
    different answer for the two cases of being in an interrupt, and being
    in the current task context with __GFP_WAIT not set.

    Interrupts get any node they want, totally ignoring cpusets.

    Context code with __GFP_WAIT not set tries every node within
    the current tasks context, before giving up and allowing any

    See my reply to Dave Chinner for a much more long winded answer.

    It may well be that this distinction between interrupt code and
    interrupts disabled code is not worth it, and should be simplified out,
    which would get rid of this fishy in_interrupt() check.

    If that's worth doing, it would be a (subtle) semantics change, and
    likely separate from this current PATCH's bug fix.

    My recommendation is to expedite this current PATCH fix, and allow any
    such (minor) design changes to follow along behind as a separate patch,
    on a more liesurely track.

    I won't rest till it's the best ...
    Programmer, Linux Scalability
    Paul Jackson <> 1.925.600.0401
    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-05-19 03:01    [W:0.035 / U:6.340 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site