|
@@ -38,7 +38,6 @@ void refrigerator(void)
|
|
processes around? */
|
|
processes around? */
|
|
long save;
|
|
long save;
|
|
save = current->state;
|
|
save = current->state;
|
|
- current->state = TASK_UNINTERRUPTIBLE;
|
|
|
|
pr_debug("%s entered refrigerator\n", current->comm);
|
|
pr_debug("%s entered refrigerator\n", current->comm);
|
|
printk("=");
|
|
printk("=");
|
|
|
|
|
|
@@ -47,8 +46,10 @@ void refrigerator(void)
|
|
recalc_sigpending(); /* We sent fake signal, clean it up */
|
|
recalc_sigpending(); /* We sent fake signal, clean it up */
|
|
spin_unlock_irq(¤t->sighand->siglock);
|
|
spin_unlock_irq(¤t->sighand->siglock);
|
|
|
|
|
|
- while (frozen(current))
|
|
|
|
|
|
+ while (frozen(current)) {
|
|
|
|
+ current->state = TASK_UNINTERRUPTIBLE;
|
|
schedule();
|
|
schedule();
|
|
|
|
+ }
|
|
pr_debug("%s left refrigerator\n", current->comm);
|
|
pr_debug("%s left refrigerator\n", current->comm);
|
|
current->state = save;
|
|
current->state = save;
|
|
}
|
|
}
|