diff options
author | Oleg Nesterov <[email protected]> | 2014-09-21 21:33:38 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-09-24 14:47:03 +0200 |
commit | 3472eaa1f12e217e2b8b0ef658ff861b2308cbbd (patch) | |
tree | c231d968cc0a6a696ae8f3e008f979899bf52b45 /net/lapb/lapb_subr.c | |
parent | 8651c65844e93af44554272b7e0d2b142837b244 (diff) |
sched: normalize_rt_tasks(): Don't use _irqsave for tasklist_lock, use task_rq_lock()
1. read_lock(tasklist_lock) does not need to disable irqs.
2. ->mm != NULL is a common mistake, use PF_KTHREAD.
3. The second ->mm check can be simply removed.
4. task_rq_lock() looks better than raw_spin_lock(&p->pi_lock) +
__task_rq_lock().
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Kirill Tkhai <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions