]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Log::reopen_log_file: take m_flush_mutex 5406/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:35:48 +0000 (09:35 -0400)
commitb8e3f6e190809febf80af66415862e7c7e415214
tree7341268423ccc58b48c379c0ee5e5114d59d0ad6
parentea6c958c38df1216bf95c927f143d8b13c4a9e70
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)

  - modified to drop m_flush_mutex_holder, which isn't present in firefly
src/log/Log.cc