From dbe4d41c5ae7cfff30feb289c04cb39561371880 Mon Sep 17 00:00:00 2001 From: Paul Jackson Date: Fri, 31 Mar 2006 02:30:50 -0800 Subject: [PATCH] --- yaml --- r: 24892 b: refs/heads/master c: 4a01c8d5be628ac20cfd432c21808d76be5813e6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/cpuset.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 3b684310c468..496b2dca1ab5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2cf8d82d63807c2c68adf20bb28bf502496186dd +refs/heads/master: 4a01c8d5be628ac20cfd432c21808d76be5813e6 diff --git a/trunk/kernel/cpuset.c b/trunk/kernel/cpuset.c index 18aea1bd1284..2523a4b6a8c6 100644 --- a/trunk/kernel/cpuset.c +++ b/trunk/kernel/cpuset.c @@ -616,12 +616,10 @@ static void guarantee_online_mems(const struct cpuset *cs, nodemask_t *pmask) * current->cpuset if a task has its memory placement changed. * Do not call this routine if in_interrupt(). * - * Call without callback_mutex or task_lock() held. May be called - * with or without manage_mutex held. Doesn't need task_lock to guard - * against another task changing a non-NULL cpuset pointer to NULL, - * as that is only done by a task on itself, and if the current task - * is here, it is not simultaneously in the exit code NULL'ing its - * cpuset pointer. This routine also might acquire callback_mutex and + * Call without callback_mutex or task_lock() held. May be + * called with or without manage_mutex held. Thanks in part to + * 'the_top_cpuset_hack', the tasks cpuset pointer will never + * be NULL. This routine also might acquire callback_mutex and * current->mm->mmap_sem during call. * * Reading current->cpuset->mems_generation doesn't need task_lock