]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: shutdown our reserver_finisher earlier in the process
authorGreg Farnum <gfarnum@redhat.com>
Fri, 26 May 2017 05:14:38 +0000 (22:14 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 26 May 2017 21:43:26 +0000 (14:43 -0700)
commit66ea9c1f66ae31035e62bd4335b08948b1e8e5e2
tree9ebadd9f7786b81857a1544d254f579bbe37563d
parentb0e9deeea8a8e90f6d7e9d56b6b4aed890e01d7b
osd: shutdown our reserver_finisher earlier in the process

This finisher thread has a lot of callbacks which can hold PGRefs. Make
sure we drain them out before checking that all the PGs have finished
and have no outstanding references.

Moving this should be safe; we've already stopped the op thread et al
and the only things still running are the OSDService's objecter_finisher,
recovery_request_timer, and snap_sleep_timer (which has definitely been emptied
by the time we get here as it's synchronously cleared out on PG shutdown).

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h