]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Log::reopen_log_file: take m_flush_mutex 5405/head
authorSamuel Just <sjust@redhat.com>
Fri, 24 Jul 2015 22:38:18 +0000 (15:38 -0700)
committerSage Weil <sage@redhat.com>
Mon, 27 Jul 2015 13:01:31 +0000 (09:01 -0400)
commit154f18ce3e52094fe84b058565a865ed97b079d6
tree276526a7f06ac8db2f8a9b34636ff19fe90cb801
parent45beb86423c3bd74dbafd36c6822e71ad9680e17
Log::reopen_log_file: take m_flush_mutex

Otherwise, _flush() might continue to write to m_fd after it's closed.
This might cause log data to go to a data object if the filestore then
reuses the fd during that time.

Fixes: #12465
Backport: firefly, hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 8778ab3a1ced7fab07662248af0c773df759653d)
src/log/Log.cc