• Linus Torvalds's avatar
    Fix del_timer_sync() SMP memory ordering (from Tejun Huh <tejun@aratech.co.kr>) · 3d9dd6d2
    Linus Torvalds authored
    From Tejun's posting:
    >
    > This patch fixes a race between del_timer_sync and recursive timers.
    > Current implementation allows the value of timer->base that is used
    > for timer_pending test to be fetched before finishing running_timer
    > test, so it's possible for a recursive time to be pending after
    > del_timer_sync.  Adding smp_rmb before timer_pending removes the race.
    3d9dd6d2
timer.c 33.1 KB