File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2904,7 +2904,7 @@ static void idle_worker_timeout(struct timer_list *t)
29042904 unsigned long expires ;
29052905
29062906 /* idle_list is kept in LIFO order, check the last one */
2907- worker = list_entry ( pool -> idle_list . prev , struct worker , entry );
2907+ worker = list_last_entry ( & pool -> idle_list , struct worker , entry );
29082908 expires = worker -> last_active + IDLE_WORKER_TIMEOUT ;
29092909 do_cull = !time_before (jiffies , expires );
29102910
@@ -2946,7 +2946,7 @@ static void idle_cull_fn(struct work_struct *work)
29462946 struct worker * worker ;
29472947 unsigned long expires ;
29482948
2949- worker = list_entry ( pool -> idle_list . prev , struct worker , entry );
2949+ worker = list_last_entry ( & pool -> idle_list , struct worker , entry );
29502950 expires = worker -> last_active + IDLE_WORKER_TIMEOUT ;
29512951
29522952 if (time_before (jiffies , expires )) {
You can’t perform that action at this time.
0 commit comments