]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: generalize PG::snaptrim_mutex to background_process_lock
authorSamuel Just <sjust@redhat.com>
Sat, 2 Sep 2023 03:22:45 +0000 (03:22 +0000)
committerSamuel Just <sjust@redhat.com>
Mon, 11 Dec 2023 04:10:18 +0000 (04:10 +0000)
commit1bda4f5dfb0aea1cd02baa592f8cd4b09153374f
tree42cb50a0a24eab65060c536ddf10e30f8d24a61c
parent6678e5df2ad1afa0eb09322ecdfa786fde14ae2f
crimson/osd: generalize PG::snaptrim_mutex to background_process_lock

We don't want scrub and snaptrimming running at the same time,
use the same lock.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/osd_operations/snaptrim_event.cc
src/crimson/osd/osd_operations/snaptrim_event.h
src/crimson/osd/pg.cc
src/crimson/osd/pg.h