os/bluestore/BlueFS: clean up log_writer aios from compaction
Normally any time we wait for aios and flush the device we go through
_flush_bdev_safely(), which takes the completed aios off of the IOContext
and discards them, releasing memory. However, compaction does not use
that method because it does not (currently) drop the lock while doing the
flush, which means we slowly leak memory after each internal log
compaction.
Fix by explicitly releasing these aios, similar to _flush_bdev_safely().
Fixes: http://tracker.ceph.com/issues/20454 Signed-off-by: Sage Weil <sage@redhat.com>