lkml.org 
[lkml]   [2012]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRE: [PATCH] Fix the race between smp_call_function and CPU booting
    From
    Date
    On Thu, 2012-03-22 at 00:59 +0000, Liu, Chuansheng wrote:
    > Below is the complete test patch. Just run the simpl_loop_onoffline.sh
    > and simpl_loop_smpcalling.sh concurrently
    > to reproduce the race.
    >
    What I did was:

    for i in {2..23} ; do echo 0 > /sys/devices/system/cpu/cpu${i}/online ; done
    while usleep 50000 ; do echo 1 > /debug/smp_call_test ; done &
    while :; do echo $i > /sys/devices/system/cpu/cpu1/online ; let i^=1 ; done

    and this has been running for well over 30 minutes.. is there anything
    else one needs to do?




    \
     
     \ /
      Last update: 2012-03-23 11:27    [W:0.028 / U:0.384 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site