cascade: use list_replace_init()
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 cascade: use list_replace_init()
On top of Porpoise's
when-config_base_samll=1-the-kernel-261611-cascade-in-kernel-timerc-may-enter-the-infinite-loop.patch
Microoptimization, cascade() can use list_replace_init() instead of list_splice_init().
Signed-off-by Oleg Nesterov <[email protected]>
kernel/timer.c renamed from kernel/timer.c~ +2 -2
@@ -385,9 +385,9 @@ static int cascade(tvec_base_t *base, tv {/* cascade all the timers from tv up one level */ struct timer_list *timer, *tmp; -LIST_HEAD (tv_list); +struct list_head tv_list; -list_splice_init (tv->vec + index, &tv_list); +list_replace_init (tv->vec + index, &tv_list);/* * We are removing _all_ timers from the list, so we