From: Paul Jackson Date: Mon, 12 Sep 2005 11:30:30 +0000 (-0700) Subject: [PATCH] cpuset semaphore depth check optimize X-Git-Tag: v2.6.14-rc1~88 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3426599af9524104be6938bcb1fcaab314781c7;p=pandora-kernel.git [PATCH] cpuset semaphore depth check optimize Optimize the deadlock avoidance check on the global cpuset semaphore cpuset_sem. Instead of adding a depth counter to the task struct of each task, rather just two words are enough, one to store the depth and the other the current cpuset_sem holder. Thanks to Nikita Danilov for the idea. Signed-off-by: Paul Jackson [ We may want to change this further, but at least it's now a totally internal decision to the cpusets code ] Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed