File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2904,7 +2904,7 @@ static void idle_worker_timeout(struct timer_list *t)
2904
2904
unsigned long expires ;
2905
2905
2906
2906
/* 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 );
2908
2908
expires = worker -> last_active + IDLE_WORKER_TIMEOUT ;
2909
2909
do_cull = !time_before (jiffies , expires );
2910
2910
@@ -2946,7 +2946,7 @@ static void idle_cull_fn(struct work_struct *work)
2946
2946
struct worker * worker ;
2947
2947
unsigned long expires ;
2948
2948
2949
- worker = list_entry ( pool -> idle_list . prev , struct worker , entry );
2949
+ worker = list_last_entry ( & pool -> idle_list , struct worker , entry );
2950
2950
expires = worker -> last_active + IDLE_WORKER_TIMEOUT ;
2951
2951
2952
2952
if (time_before (jiffies , expires )) {
You can’t perform that action at this time.
0 commit comments