RE: PROBLEM: possible proceses leak

From: Andrew Volkov
Date: Mon Dec 08 2003 - 13:46:45 EST


Yes.

And same bug in kernel/sched.c in ALL *_sleep_on

Andrey

==========================================================
--- kernel/sched.c.old 2003-12-08 21:39:08.000000000 +0300
+++ kernel/sched.c 2003-12-08 21:40:19.000000000 +0300
@@ -819,10 +819,8 @@
void interruptible_sleep_on(wait_queue_head_t *q)
{
SLEEP_ON_VAR
-
- current->state = TASK_INTERRUPTIBLE;
-
SLEEP_ON_HEAD
+ current->state = TASK_INTERRUPTIBLE;
schedule();
SLEEP_ON_TAIL
}
@@ -831,9 +829,8 @@
{
SLEEP_ON_VAR

- current->state = TASK_INTERRUPTIBLE;
-
SLEEP_ON_HEAD
+ current->state = TASK_INTERRUPTIBLE;
timeout = schedule_timeout(timeout);
SLEEP_ON_TAIL

@@ -844,9 +841,8 @@
{
SLEEP_ON_VAR

- current->state = TASK_UNINTERRUPTIBLE;
-
SLEEP_ON_HEAD
+ current->state = TASK_UNINTERRUPTIBLE;
schedule();
SLEEP_ON_TAIL
}
@@ -855,9 +851,8 @@
{
SLEEP_ON_VAR

- current->state = TASK_UNINTERRUPTIBLE;
-
SLEEP_ON_HEAD
+ current->state = TASK_UNINTERRUPTIBLE;
timeout = schedule_timeout(timeout);
SLEEP_ON_TAIL

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/