From dd9037a26a1e6ebec9121b4681c414dc77189a90 Mon Sep 17 00:00:00 2001 From: Srivatsa Vaddagiri Date: Tue, 8 May 2007 00:27:25 -0700 Subject: [PATCH] Fix race between attach_task and cpuset_exit Currently cpuset_exit() changes the exiting task's ->cpuset pointer w/o taking task_lock(). This can lead to ugly races between attach_task and cpuset_exit. Details of the races are described at http://lkml.org/lkml/2007/3/24/132. Patch below closes those races. Signed-off-by: Srivatsa Vaddagiri Cc: Paul Jackson Cc: Balbir Singh Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed