aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parser.c
diff options
context:
space:
mode:
authorLai Jiangshan <[email protected]>2008-10-04 20:51:15 +0000
committerAlexey Dobriyan <[email protected]>2008-10-10 00:18:57 +0000
commita6bebbc87a8c16eabb6bd5c6fd2d994be0236fba (patch)
tree3e617ca49063f3a12c982da5d6c687882a1b4070 /lib/parser.c
parentproc: move PROC_PAGE_MONITOR to fs/proc/Kconfig (diff)
downloadkernel-a6bebbc87a8c16eabb6bd5c6fd2d994be0236fba.tar.gz
kernel-a6bebbc87a8c16eabb6bd5c6fd2d994be0236fba.zip
[PATCH] signal, procfs: some lock_task_sighand() users do not need rcu_read_lock()
lock_task_sighand() make sure task->sighand is being protected, so we do not need rcu_read_lock(). [ exec() will get task->sighand->siglock before change task->sighand! ] But code using rcu_read_lock() _just_ to protect lock_task_sighand() only appear in procfs. (and some code in procfs use lock_task_sighand() without such redundant protection.) Other subsystem may put lock_task_sighand() into rcu_read_lock() critical region, but these rcu_read_lock() are used for protecting "for_each_process()", "find_task_by_vpid()" etc. , not for protecting lock_task_sighand(). Signed-off-by: Lai Jiangshan <[email protected]> [ok from Oleg] Signed-off-by: Alexey Dobriyan <[email protected]>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions