Skip to contentSkip to conversation

BUG: 2.6.2-mm1: destroy_workqueue

DISCUSSION Matthias Urlichs 2 participants 2 messages Feb 7, 2004 Workqueue

lore
Share & tools
lore
#0 lore raw

I had a crash when unmounting a reiserfs at shutdown time.

Apparently, destroy_workqueue() inlines list_del(), which checks for

148 BUG_ON(entry->prev->next != entry);

This is a problem when entry->prev is NULL. :-/

Call trace, copied off the screen by hand:
destroy_workqueue+0x30
do_journal_release+0x4e
journal_mark_dirty+0x18c
journal_release+0x10
reiserfs_put_super+0x24

Built using gcc version 3.3.2 (Debian), no other patches.

#1 lore raw
Quoted 7 lines · Matthias Urlichs

I had a crash when unmounting a reiserfs at shutdown time.

Apparently, destroy_workqueue() inlines list_del(), which checks for

148 BUG_ON(entry->prev->next != entry);

Quoted 9 lines

This is a problem when entry->prev is NULL. :-/

Call trace, copied off the screen by hand:
destroy_workqueue+0x30
do_journal_release+0x4e
journal_mark_dirty+0x18c
journal_release+0x10
reiserfs_put_super+0x24

yup, thanks.

kernel/workqueue.c renamed from kernel/workqueue.c~cpuhotplug-03-core-workqueue-fix +1 -1
@@ -335,7 +335,7 @@ void destroy_workqueue(struct workqueue_
 		if (cpu_online(cpu))
 			cleanup_workqueue_thread(wq, cpu);
 	}
-	list_del(&wq->list);
+	del_workqueue(wq);
 	unlock_cpu_hotplug();
 	kfree(wq);
 }

_