]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: make _sync_and_flush_log smarter
authorSage Weil <sage@redhat.com>
Fri, 24 Jun 2016 13:43:52 +0000 (09:43 -0400)
committerSage Weil <sage@redhat.com>
Thu, 30 Jun 2016 16:56:56 +0000 (12:56 -0400)
commit97699334acd59e9530d36b13d3a8408cabf848ef
tree98672130c7c512acc4d3a0440f4716e8a5360ce4
parent10d055d65727e47deae4e459bc21aaa243c24a7d
os/bluestore/BlueFS: make _sync_and_flush_log smarter

If we know what event we need to wait for, only wait long enough for it
to flush.  This helps the situation where another thread flushed what we
needed, and more dirty stuff was added to log_t, but we don't need to
wait for that too for our caller to be happy.

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