]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: add PG::with_clone_obc()
authorKefu Chai <kchai@redhat.com>
Wed, 11 Nov 2020 10:36:22 +0000 (18:36 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Nov 2020 09:37:59 +0000 (17:37 +0800)
commitb4bb0d45f3b7929ef45215669002a3cce6c2c643
tree22f2371c84301040b96b94dc4d50b82dbe2c8b2c
parentce8c0f363d24ce958bbf880ee60843f7ae78eaa2
crimson/osd: add PG::with_clone_obc()

this method replaces `PG::get_or_load_clone_obc()`. so we can
with `seastar::with_lock()` to ensure that `lock.unlock()` is always
called when accessing clone obc.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h