Skip to content
Commit a6bebbc8 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Alexey Dobriyan
Browse files

[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: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
[ok from Oleg]
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
parent 53167a3e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment