lkml.org 
[lkml]   [2017]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: mm: deadlock between get_online_cpus/pcpu_alloc
    On Thu, 9 Feb 2017, Thomas Gleixner wrote:

    > And how does that solve the problem at hand? Not at all:
    >
    > CPU 0 CPU 1
    >
    > for_each_online_cpu(cpu)
    > ==> cpu = 1
    > stop_machine()
    > set_cpu_online(1, false)
    > queue_work(cpu1)
    >
    > Thanks,

    Well thats not how I remember stop_machine does work. Doesnt it stop the
    processing on all cpus otherwise its not a real usable stop.

    The stop_machine would need to ensure that all cpus cease processing
    before proceeding.


    \
     
     \ /
      Last update: 2017-02-09 15:02    [W:9.299 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site