We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc505d commit d00a08cCopy full SHA for d00a08c
kernel/irq_work.c
@@ -128,17 +128,17 @@ bool irq_work_needs_cpu(void)
128
129
static void irq_work_run_list(struct llist_head *list)
130
{
131
- unsigned long flags;
132
- struct irq_work *work;
+ struct irq_work *work, *tmp;
133
struct llist_node *llnode;
+ unsigned long flags;
134
135
BUG_ON(!irqs_disabled());
136
137
if (llist_empty(list))
138
return;
139
140
llnode = llist_del_all(list);
141
- llist_for_each_entry(work, llnode, llnode) {
+ llist_for_each_entry_safe(work, tmp, llnode, llnode) {
142
/*
143
* Clear the PENDING bit, after this point the @work
144
* can be re-used.
0 commit comments