Re: [PATCH] add_timer -> mod_timer() in dst_run_gc()

2006-08-09 Thread David Miller
From: Kirill Korotaev <[EMAIL PROTECTED]> Date: Wed, 09 Aug 2006 13:01:32 +0400 > F.e. timer has fired on CPU2, but the handler was preeempted > by an irq before dst_lock is tried. > Meanwhile, someone on CPU1 adds an entry to gc list and > starts the timer. > If CPU2 was preempted long enough, th

[PATCH] add_timer -> mod_timer() in dst_run_gc()

2006-08-09 Thread Kirill Korotaev
Patch from Dmitry Mishin <[EMAIL PROTECTED]>: Replace add_timer() by mod_timer() in dst_run_gc in order to avoid BUG message. CPU1CPU2 dst_run_gc() entered dst_run_gc() entered spin_lock(&dst_lock) . del_timer(&dst_gc_timer)