aboutsummaryrefslogtreecommitdiff
path: root/include/linux/bug.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-09-21 21:33:41 +0200
committerMoyster <oysterized@gmail.com>2019-05-02 18:05:51 +0200
commitb7013589d0ba53392d4a1b77873e20a2056b8793 (patch)
tree25413d0bed3078455e8a786beb59bf66243a8281 /include/linux/bug.h
parent8ba303e411964aec72f42f6fc5ed6fb5e5259b60 (diff)
sched: print_rq(): Don't use tasklist_lock
read_lock_irqsave(tasklist_lock) in print_rq() looks strange. We do not need to disable irqs, and they are already disabled by the caller. And afaics this lock buys nothing, we can rely on rcu_read_lock(). In this case it makes sense to also move rcu_read_lock/unlock from the caller to print_rq(). Change-Id: Iadf0de148e27623af4535abc40c77c1dfd1f9c76 Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Kirill Tkhai <tkhai@yandex.ru> Cc: Mike Galbraith <umgwanakikbuti@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/20140921193341.GA28628@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/bug.h')
0 files changed, 0 insertions, 0 deletions