Searched hist:"80 ca8c3a84c74a87977558861bb8eef650732912" (Results 1 – 1 of 1) sorted by relevance
/linux/lib/ |
H A D | rhashtable.c | diff 80ca8c3a84c74a87977558861bb8eef650732912 Tue Jan 13 00:58:21 CET 2015 Thomas Graf <tgraf@suug.ch> 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 <fengguang.wu@intel.com> Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
|