From: Thomas Graf Date: Mon, 12 Jan 2015 23:58:21 +0000 (+0000) Subject: rhashtable: Lower/upper bucket may map to same lock while shrinking X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~224 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80ca8c3a84c74a87977558861bb8eef650732912;p=pandora-kernel.git rhashtable: Lower/upper bucket may map to same lock while shrinking Each per bucket lock covers a configurable number of buckets. While shrinking, two buckets in the old table contain entries for a single bucket in the new table. We need to lock down both while linking. Check if they are protected by different locks to avoid a recursive lock. Fixes: 97defe1e ("rhashtable: Per bucket locks & deferred expansion/shrinking") Reported-by: Fengguang Wu Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed