]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: rebuild reverse maps after rebuilding crush map 39197/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 14 Jul 2020 22:49:30 +0000 (18:49 -0400)
committerwangyingbin <ybwang0211@163.com>
Mon, 1 Feb 2021 03:51:03 +0000 (11:51 +0800)
commit3ccc8f89c116246ac62a093606cc62cca06a84ef
tree217ad6c0baefd2eae9c318e2d242cdecdd835197
parent08e445b86b70972ea6dc18d5a0b660e7ae1ed8b9
crush/CrushWrapper: rebuild reverse maps after rebuilding crush map

The Objecter will crash when localized reads are enabled and two threads
attempt to rebuild the (invalidated) reverse maps concurrently. This
should address the issue for the Objecter use-case without the need to
add additional locking.

Fixes: https://tracker.ceph.com/issues/44311
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8b866794f5b3674c5e3ad9adceb5e3230d55a0e0)
src/crush/CrushWrapper.h