]> Git Repo - linux.git/commit - drivers/oprofile/buffer_sync.c
[PATCH] Make RCU task_struct safe for oprofile
authorPaul E. McKenney <[email protected]>
Sun, 8 Jan 2006 09:01:35 +0000 (01:01 -0800)
committerLinus Torvalds <[email protected]>
Mon, 9 Jan 2006 04:13:40 +0000 (20:13 -0800)
commit4369ef3c3e9d3bd9b879580678778f558d481e90
tree32b443b32c6de858c419f75dad07c46028359afe
parenteafbaa94691f6a1fa67c3b076caa3ce4e2920100
[PATCH] Make RCU task_struct safe for oprofile

Applying RCU to the task structure broke oprofile, because
free_task_notify() can now be called from softirq.  This means that the
task_mortuary lock must be acquired with irq disabled in order to avoid
intermittent self-deadlock.  Since irq is now disabled, the critical
section within process_task_mortuary() has been restructured to be O(1) in
order to maximize scalability and minimize realtime latency degradation.

Kudos to Wu Fengguang for finding this problem!

CC: Wu Fengguang <[email protected]>
Cc: Philippe Elie <[email protected]>
Cc: John Levon <[email protected]>
Signed-off-by: "Paul E. McKenney" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/oprofile/buffer_sync.c
This page took 0.042741 seconds and 4 git commands to generate.