X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fworkqueue.c;h=740c5abceb07bdf2e1072a816594ada2fcff3e70;hb=73e55cb3b3549d0174d1dadb755200938232e8d0;hp=880fb415a8f601ebb5fff636fee20b958fe71149;hpb=29f147d746326e4db5fe350c70373081d61a2965;p=linux-2.6 diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 880fb415a8..740c5abceb 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -531,11 +531,11 @@ int current_is_keventd(void) static void take_over_work(struct workqueue_struct *wq, unsigned int cpu) { struct cpu_workqueue_struct *cwq = per_cpu_ptr(wq->cpu_wq, cpu); - LIST_HEAD(list); + struct list_head list; struct work_struct *work; spin_lock_irq(&cwq->lock); - list_splice_init(&cwq->worklist, &list); + list_replace_init(&cwq->worklist, &list); while (!list_empty(&list)) { printk("Taking work for %s\n", wq->name);