]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileJournal: stop aio completion thread *after* writer thread 2724/head
authorSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:40:29 +0000 (19:40 -0700)
committerLoic Dachary <loic-201408@dachary.org>
Wed, 15 Oct 2014 01:53:31 +0000 (18:53 -0700)
commit334631ae4641824b3df49245f36a8fd4b143bf3f
tree6b1768f9e2bf359a75f5429e54bc63f4a6f2deab
parent111eec9ff6325a12fcbf066ae08f27919aeae5d8
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>
(cherry picked from commit c776a89880fdac270e6334ad8e49fa616d05d0d4)

Conflicts:
src/os/FileJournal.cc
src/os/FileJournal.cc
src/os/FileJournal.h