]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] cpusets: remove depth counted locking hack
authorPaul Jackson <pj@sgi.com>
Sun, 30 Oct 2005 23:02:28 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:21 +0000 (17:37 -0800)
commit8e38a2f66c0430e52696b752b5629538e2821ff8
tree914f0b33f5190bd0183cde2e9f6da552d3d1d7aa
parent3d151dd971fc84b42a782a185d1a7d21a318b140
[PATCH] cpusets: remove depth counted locking hack

Remove a rather hackish depth counter on cpuset locking.  The depth counter
was avoiding a possible double trip on the global cpuset_sem semaphore.  It
worked, but now an improved version of cpuset locking is available, to come
in the next patch, using two global semaphores.

This patch reverses "cpuset semaphore depth check deadlock fix"

The kernel still works, even after this patch, except for some rare and
difficult to reproduce race conditions when agressively creating and
destroying cpusets marked with the notify_on_release option, on very large
systems.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/cpuset.c