]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/.../object_context: remove loading_mutex
authorSamuel Just <sjust@redhat.com>
Mon, 10 Jun 2024 21:15:16 +0000 (21:15 +0000)
committerSamuel Just <sjust@redhat.com>
Mon, 24 Jun 2024 00:53:53 +0000 (17:53 -0700)
Now that we acquire and demote an exclusive lock during loading without
blocking, a seperate loading_mutex shouldn't be necessary.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/object_context.h

index ae8d1d34a4a5f02394b602ad23de320346c37636..c8349e4fc5c661e8e3c79822752955618ce47c6b 100644 (file)
@@ -74,10 +74,6 @@ public:
   using watch_key_t = std::pair<uint64_t, entity_name_t>;
   std::map<watch_key_t, seastar::shared_ptr<crimson::osd::Watch>> watchers;
 
-  // obc loading is a concurrent phase. In case this obc is being loaded,
-  // make other users of this obc to await for the loading to complete.
-  seastar::shared_mutex loading_mutex;
-
   ObjectContext(hobject_t hoid) : lock(hoid.oid.name),
                                   obs(std::move(hoid)) {}