]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileJournal: For journal-aio-mode, don't use aio when closing journal.
authorMa Jianpeng <jianpeng.ma@intel.com>
Thu, 21 Aug 2014 07:10:46 +0000 (15:10 +0800)
committerSage Weil <sage@redhat.com>
Tue, 21 Oct 2014 13:55:20 +0000 (06:55 -0700)
commitecff3761f3d15061a2cbf0a595ca249a4c424f4c
tree979c74e1e9239b06c392500ce4e45e43aa440aaa
parentdbc33fbab4b35e2ce1e46a881f6714262502c243
os/FileJournal: For journal-aio-mode, don't use aio when closing journal.

For jouranl-aio-mode when closing journal, the write_finish_thread_entry may exit before
write_thread_entry. This cause no one wait last aios to complete.
On some platform, after that the journal-header on journal corrupted.
To avoid this, when closing jouranl we don't use aio.

Fixes: 9073
Reported-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
(cherry picked from commit e870fd09ce846e5642db268c33bbe8e2e17ffef2)
src/os/FileJournal.cc