]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: stop MgrClient callbacks on shutdown
authorSage Weil <sage@redhat.com>
Mon, 1 May 2017 14:33:36 +0000 (10:33 -0400)
committerSage Weil <sage@redhat.com>
Mon, 1 May 2017 14:33:36 +0000 (10:33 -0400)
commit83c45ad6a440046d8e4a41a60edd3ad5146e6bd1
tree3980473ff99d9b95f58134ebf88d4f768681ab18
parent1c9a48cec89929bf453433f1a53a2f24fd3c9e32
osd: stop MgrClient callbacks on shutdown

Stop the MgrClient callbacks to report PG stats at the
start of shutdown() so that we don't get a callback
during/after we are done shutting down.

Protect the cb update with the MgrClient's lock so that
we don't race with MgrClient::send_report() itself.

Fixes: http://tracker.ceph.com/issues/19638
Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/MgrClient.h
src/osd/OSD.cc