The patch titled
softlockup: fix a potential race condition in watchdog()
has been removed from the -mm tree. Its filename was
softlockup-fix-a-potential-race-condition-in-watchdog-2.patch
This patch was dropped because it is obsolete
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: softlockup: fix a potential race condition in watchdog()
From: Dmitry Adamushko <[EMAIL PROTECTED]>
kthread_stop() can be called when a 'watchdog' thread is executing after
kthread_should_stop() but before set_task_state(TASK_INTERRUPTIBLE).
Signed-off-by: Dmitry Adamushko <[EMAIL PROTECTED]>
Cc: Ingo Molnar <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
kernel/softlockup.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff -puN
kernel/softlockup.c~softlockup-fix-a-potential-race-condition-in-watchdog-2
kernel/softlockup.c
---
a/kernel/softlockup.c~softlockup-fix-a-potential-race-condition-in-watchdog-2
+++ a/kernel/softlockup.c
@@ -217,26 +217,25 @@ static int watchdog(void *__bind_cpu)
/* initialize timestamp */
touch_softlockup_watchdog();
+ set_current_state(TASK_INTERRUPTIBLE);
/*
* Run briefly once per second to reset the softlockup timestamp.
* If this gets delayed for more than 60 seconds then the
* debug-printout triggers in softlockup_tick().
*/
while (!kthread_should_stop()) {
- set_current_state(TASK_INTERRUPTIBLE);
touch_softlockup_watchdog();
schedule();
if (kthread_should_stop())
break;
- if (this_cpu != check_cpu)
- continue;
-
- if (sysctl_hung_task_timeout_secs)
+ if (this_cpu == check_cpu && sysctl_hung_task_timeout_secs)
check_hung_uninterruptible_tasks(this_cpu);
+ set_current_state(TASK_INTERRUPTIBLE);
}
+ __set_current_state(TASK_RUNNING);
return 0;
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
softlockup-fix-a-potential-race-condition-in-watchdog-2.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html