]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/lockdep: increase MAX_LOCKS to 128k 39905/head
authorKefu Chai <kchai@redhat.com>
Mon, 8 Mar 2021 08:09:34 +0000 (16:09 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Mar 2021 13:16:35 +0000 (21:16 +0800)
commitd0f8c71280518f1f1dc46a4716c173f1d7da98f1
treef50c74c21bd5ebee7318649e572ce0facdf840c8
parent9e9fe76ff130f8fd7aac46ab4819da4b477f7c73
common/lockdep: increase MAX_LOCKS to 128k

initialize follows and follows_bt with 4k, and resize them when the
size of locks exceeds the initial number, but with the upper bound of
MAX_LOCKS which is fixed at compile time.

this change allows us to use 128k locks in the same time.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/lockdep.cc