From: Srivatsa Vaddagiri Date: Tue, 8 May 2007 07:27:25 +0000 (-0700) Subject: Fix race between attach_task and cpuset_exit X-Git-Tag: v2.6.22-rc1~713 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd9037a26a1e6ebec9121b4681c414dc77189a90;p=pandora-kernel.git 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-diff-tree failed