diff options
author | Paul Jackson <pj@sgi.com> | 2005-09-12 07:30:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 12:16:27 -0400 |
commit | b3426599af9524104be6938bcb1fcaab314781c7 (patch) | |
tree | c6d354bddb5b8cd298d139b60a9257ebd8323b90 /include/linux | |
parent | f24ec7f6c6278c0ea4c00efe96d50b1e66796c44 (diff) |
[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 <pj@sgi.com>
[ 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 <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ed3bb19d1337..38c8654aaa96 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -785,7 +785,6 @@ struct task_struct { | |||
785 | short il_next; | 785 | short il_next; |
786 | #endif | 786 | #endif |
787 | #ifdef CONFIG_CPUSETS | 787 | #ifdef CONFIG_CPUSETS |
788 | short cpuset_sem_nest_depth; | ||
789 | struct cpuset *cpuset; | 788 | struct cpuset *cpuset; |
790 | nodemask_t mems_allowed; | 789 | nodemask_t mems_allowed; |
791 | int cpuset_mems_generation; | 790 | int cpuset_mems_generation; |