Lines Matching refs:list
34 struct io_wq_work_list *list)
41 list->last = node;
45 struct io_wq_work_list *list)
48 if (!list->first) {
49 list->last = node;
50 WRITE_ONCE(list->first, node);
52 list->last->next = node;
53 list->last = node;
57 static inline void wq_list_cut(struct io_wq_work_list *list,
61 /* first in the list, if prev==NULL */
63 WRITE_ONCE(list->first, last->next);
67 if (last == list->last)
68 list->last = prev;
72 static inline void wq_list_del(struct io_wq_work_list *list,
76 wq_list_cut(list, node, prev);
82 #define wq_list_empty(list) (READ_ONCE((list)->first) == NULL)
83 #define INIT_WQ_LIST(list) do { \
84 (list)->first = NULL; \
85 (list)->last = NULL; \
89 struct io_wq_work_node list;
95 if (!work->list.next)
98 return container_of(work->list.next, struct io_wq_work, list);