]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "os/FileJournal: For journal-aio-mode, don't use aio when closing journal." 2553/head
authorSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:41:28 +0000 (19:41 -0700)
committerSage Weil <sage@redhat.com>
Sat, 30 Aug 2014 02:41:28 +0000 (19:41 -0700)
This reverts commit e870fd09ce846e5642db268c33bbe8e2e17ffef2.

The aio completion thread will now wait for the final header update aio to
finish; this workaround is no longer necessary.

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

index c47f9b463bd5926ddf804e06ed76cfaf9434cb5d..3cf92fe7e2237c3e31fe39ef906ff15059ad0c4f 100644 (file)
@@ -1123,9 +1123,7 @@ void FileJournal::write_thread_entry()
     }
     
 #ifdef HAVE_LIBAIO
-    //We hope write_finish_thread_entry return until the last aios complete
-    //when set write_stop. But it can't. So don't use aio mode when shutdown.
-    if (aio && !write_stop) {
+    if (aio) {
       Mutex::Locker locker(aio_lock);
       // should we back off to limit aios in flight?  try to do this
       // adaptively so that we submit larger aios once we have lots of
@@ -1176,7 +1174,7 @@ void FileJournal::write_thread_entry()
     }
 
 #ifdef HAVE_LIBAIO
-    if (aio && !write_stop)
+    if (aio)
       do_aio_write(bl);
     else
       do_write(bl);