diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-01-12 23:58:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-14 00:21:44 -0500 |
commit | 80ca8c3a84c74a87977558861bb8eef650732912 (patch) | |
tree | e275dc10e62e28ea8b7f4c25e6a30664974e233f /lib/swiotlb.c | |
parent | df8a39defad46b83694ea6dd868d332976d62cc0 (diff) | |
download | op-kernel-dev-80ca8c3a84c74a87977558861bb8eef650732912.zip op-kernel-dev-80ca8c3a84c74a87977558861bb8eef650732912.tar.gz |
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>
Diffstat (limited to 'lib/swiotlb.c')
0 files changed, 0 insertions, 0 deletions