From 80ca8c3a84c74a87977558861bb8eef650732912 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Mon, 12 Jan 2015 23:58:21 +0000 Subject: [PATCH] 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-format-patch failed