From: Oleg Nesterov Date: Sun, 21 Sep 2014 19:33:41 +0000 (+0200) Subject: sched: print_rq(): Don't use tasklist_lock X-Git-Tag: omap-for-v3.19/prcm-cleanup~94^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd96ab6fef66ec6b9f54134364e618fd0f8f2f3;p=pandora-kernel.git 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(). Signed-off-by: Oleg Nesterov Signed-off-by: Peter Zijlstra (Intel) Cc: Kirill Tkhai Cc: Mike Galbraith Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20140921193341.GA28628@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed