ceph/ceph — pull request #2723 by dachary (2014-10-15 01:27:29+00:00)
Title: 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
Tested-by: Mark Kirkwood
Signed-off-by: Ma Jianpeng
(cherry picked from commit e870fd09ce846e5642db268c33bbe8e2e17ffef2)