Skip to contentSkip to conversation

posix-timer fix requeue accounting when signal is ignored

PATCH New Thomas Gleixner 1 participant 1 message Mar 16, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 posix-timer fix requeue accounting when signal is ignored

From: Roman Zippel <[email protected]>

When the posix-timer signal is ignored then the timer is rearmed by the callback function. The requeue pending accounting has to be fixed up else the state might be wrong.

kernel/posix-timers.c +1 -0
Index: linux-2.6.16-updates/kernel/posix-timers.c
===================================================================
@@ -358,6 +358,7 @@ static int posix_timer_fn(struct hrtimer
 						timer->base->softirq_time,
 						timr->it.real.interval);
 			ret = HRTIMER_RESTART;
+			++timr->it_requeue_pending;
 		}
 	}