]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileJournal: stop aio completion thread *after* writer thread
authorSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:40:29 +0000 (19:40 -0700)
committerSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:40:29 +0000 (19:40 -0700)
commitc776a89880fdac270e6334ad8e49fa616d05d0d4
treec3b9a42dd1dcd1ca4abfbbfd2a04cf8b37598f5c
parent67c552becd0fd5d55fd0aff766e8d6d38ac0ca0a
os/FileJournal: stop aio completion thread *after* writer thread

The writer thread may submit a new aio to update the header in its
final moments before shutting down.  Do not stop the aio thread until after
that has happened or else we may not wait for those aio completions.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/FileJournal.cc
src/os/FileJournal.h