]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osdc: Fix crash on OSD failure
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Jun 2020 19:18:35 +0000 (15:18 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Jun 2020 19:18:35 +0000 (15:18 -0400)
commit893b9d94668b36a395c28cfebc7aea1bda29085f
treef9b2b7c0b0f4d8fe78686ff60f1bb5f0c1ad2264
parent64aa8e7b87570ce10806a61e45a867a5db77130c
osdc: Fix crash on OSD failure

OSDSession::lock should not use lockdep, as we violate its rules in a
place that's safe. Revert it to std::mutex.

Thanks to Or Friedmann <ofriedma@redhat.com> for finding the problem.

Fixes: https://tracker.ceph.com/issues/45878
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h