Skip to content

Commit d5744c1

Browse files
committed
Merge PR ceph#54433 into main
* refs/pull/54433/head: CephContext: acquire _fork_watchers_lock in notify_post_fork() Reviewed-by: Patrick Donnelly <[email protected]> Reviewed-by: Radoslaw Zarzynski <[email protected]>
2 parents 1d815ce + faef266 commit d5744c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/ceph_context.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ void CephContext::notify_pre_fork()
10421042

10431043
void CephContext::notify_post_fork()
10441044
{
1045-
ceph::spin_unlock(&_fork_watchers_lock);
1045+
std::lock_guard lg(_fork_watchers_lock);
10461046
for (auto &&t : _fork_watchers)
10471047
t->handle_post_fork();
10481048
}

0 commit comments

Comments
 (0)