]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
lockdep: switch follows_bt vector member to std::map
authorXiubo Li <xiubli@redhat.com>
Fri, 12 Mar 2021 12:49:24 +0000 (20:49 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 12 Mar 2021 15:43:13 +0000 (23:43 +0800)
commita873edba9e009ec34150ac5f6cd5ce9fa0dd5719
tree7558bd3868758d927fc7a6ed720d98e9a328fa2b
parent744edab3ffd9a3944dfba7b10b1bf8860ffa84a1
lockdep: switch follows_bt vector member to std::map

Delete the MAX_FOLLOWERS and increase the bitset size to MAX_LOCKS
in 'follows'. The maximum memories of the 'follows' will be 2GB.

But for the 'follows_bt', if we continue use the std::array, the
maximum memories will be 128G, but most of the array spaces are
useless. Switch the std::array to std::man instead.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/common/lockdep.cc