]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: prevent _compact_log_async reentry 17562/head
authorSage Weil <sage@redhat.com>
Tue, 5 Sep 2017 19:01:02 +0000 (15:01 -0400)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 7 Sep 2017 13:00:32 +0000 (15:00 +0200)
commitdd5f9e53335892fa04a1d489de1020d5655e1e3f
tree99ad0e96d644feecddc6041d50d84b5326eba408
parent823585311c41729309809690a7df5cb83c4ece12
os/bluestore/BlueFS: prevent _compact_log_async reentry

_should_compact_log uses new_log != nullptr to tell whether compaction is
already in progress, but we don't set it until we are midway through the
process.  Set it at the top of the method to prevent reentry.

See 455cc6cea2e5e8bc1126b5047b6003fa583af1b5, which failed to implement
this properly.

Fixes: http://tracker.ceph.com/issues/21250
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 6bd9db304f906e9e4a07ca5ce07ffffdbc1678f0)
src/os/bluestore/BlueFS.cc