diff --git a/fs/io-wq.h b/fs/io-wq.h index 4521e4dcb8b5307453a5246af97e40b691ea88b6..7d2fe718f78e6a54ea9960713e991a77bc864594 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -52,6 +52,7 @@ static inline void wq_node_del(struct io_wq_work_list *list, list->last = prev; if (prev) prev->next = node->next; + node->next = NULL; } #define wq_list_for_each(pos, prv, head) \