Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ac076758b97d9e3d2c1557cfa412911e93cd0919
Commit:     ac076758b97d9e3d2c1557cfa412911e93cd0919
Parent:     db912f963909b3cbc3a059b7528f6a1a1eb6ffae
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Thu May 24 12:33:15 2007 +0300
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 12:05:49 2007 +0300

    HOTPLUG: Adapt cpuset hotplug callback to CPU_DYING
    
    CPU_DYING is called in atomic context, so don't try to take any locks.
    
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
---
 kernel/cpuset.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 4c49188..c4d123f 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2138,6 +2138,9 @@ static void common_cpu_mem_hotplug_unplug(void)
 static int cpuset_handle_cpuhp(struct notifier_block *nb,
                                unsigned long phase, void *cpu)
 {
+       if (phase == CPU_DYING || phase == CPU_DYING_FROZEN)
+               return NOTIFY_DONE;
+
        common_cpu_mem_hotplug_unplug();
        return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to