From: Li Zefan Date: Mon, 17 Aug 2009 05:39:49 +0000 (+0800) Subject: lockdep: Fix missing entries in /proc/lock_chains X-Git-Tag: v2.6.32-rc1~726^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9d65725bdf5954283625ca4d770bfc34f2ae56a;p=pandora-kernel.git lockdep: Fix missing entries in /proc/lock_chains Two entries are missing in the output of /proc/lock_chains. One is chains[1]. When lc_next() is called the 1st time, chains[0] is returned. And when it's called the 2nd time, chains[2] is returned. The other missing ons is, when lc_start() is called the 2nd time, we should start from chains[@pos-1] but not chains[@pos], because pos == 0 is the header. Signed-off-by: Li Zefan Cc: Peter Zijlstra LKML-Reference: <4A88ED25.2040306@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed