lkml.org 
[lkml]   [2013]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] mm: make lru_add_drain_all() selective
    On 08/06/2013 01:22 PM, Chris Metcalf wrote:
    [...]

    >
    > /**
    > + * schedule_on_each_cpu - execute a function synchronously on each online CPU
    > + * @func: the function to call
    > + *
    > + * schedule_on_each_cpu() executes @func on each online CPU using the
    > + * system workqueue and blocks until all CPUs have completed.
    > + * schedule_on_each_cpu() is very slow.
    > + *
    > + * RETURNS:
    > + * 0 on success, -errno on failure.
    > + */
    > +int schedule_on_each_cpu(work_func_t func)
    > +{
    > + get_online_cpus();
    > + schedule_on_cpu_mask(func, cpu_online_mask);

    Looks like the return value gets lost here.

    > + put_online_cpus();
    > + return 0;
    > +}
    > +
    > +/**
    > * flush_scheduled_work - ensure that any scheduled work has run to completion.
    > *
    > * Forces execution of the kernel-global workqueue and blocks until its

    [...]



    \
     
     \ /
      Last update: 2013-08-08 01:01    [W:4.060 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site