]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/intrusive_lru: add clear() mechanism and state for removed items with live...
authorSamuel Just <sjust@redhat.com>
Thu, 18 Jan 2024 04:26:07 +0000 (20:26 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 18 Jan 2024 19:56:10 +0000 (11:56 -0800)
commit9fd22e142ff1482079561c6a9f55adaddcdf413f
treef19aeaf6d7f9910ec89981ec96d0053f73bc01ee
parent10c9fb3240f987b605de6fe7c3c1e66bb32d89aa
common/intrusive_lru: add clear() mechanism and state for removed items with live references

We need to be able to clear the lru without waiting for all outstanding
references to be released.  Items with such references enter an
invalidated state where references can still be added and removed with
deletion at use_count == 0, but can't be accessed any longer via the lru.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/common/intrusive_lru.h
src/test/common/test_intrusive_lru.cc