Fixed a nasty spinlock issue with wake_up_all that didn't get caught.

This commit is contained in:
Bahadir Balban
2009-10-31 20:47:20 +02:00
parent 638df9e238
commit c763679aaa
6 changed files with 67 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ do { \
task_set_wqh(current, wqh, &wq); \
(wqh)->sleepers++; \
list_insert_tail(&wq.task_list, &(wqh)->task_list);\
/* printk("(%d) waiting...\n", current->tid);*/ \
/* printk("(%d) waiting...\n", current->tid); */ \
sched_prepare_sleep(); \
spin_unlock(&(wqh)->slock); \
schedule(); \