Skip to content

Commit faef266

Browse files
committed
CephContext: acquire _fork_watchers_lock in notify_post_fork()
The ceph::spin_unlock() seems incorrect here. Fixes: http://tracker.ceph.com/issues/63494 Signed-off-by: Venky Shankar <[email protected]>
1 parent a973827 commit faef266

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)