break;
}
- if (m_flush_ops_will_send) {
- ldout(cct, 20) << "Previous flush-ops is still not sent" << dendl;
- break;
- }
auto candidate = m_dirty_log_entries.front();
bool flushable = can_flush_entry(candidate);
if (flushable) {
m_lowest_flushing_sync_gen = candidate->ram_entry.sync_gen_number;
}
m_flush_ops_in_flight += 1;
- m_flush_ops_will_send += 1;
/* For write same this is the bytes affected by the flush op, not the bytes transferred */
m_flush_bytes_in_flight += candidate->ram_entry.write_bytes;
}
std::atomic<int> m_async_flush_ops = {0};
std::atomic<int> m_async_append_ops = {0};
- std::atomic<int> m_flush_ops_will_send = {0};
/* Acquire locks in order declared here */
mutable ceph::mutex m_log_retire_lock;
ldout(m_image_ctx.cct, 15) << "flushing:" << log_entry
<< " " << *log_entry << dendl;
log_entry->writeback(this->m_image_writeback, ctx);
- this->m_flush_ops_will_send -= 1;
}), 0);
});
}
ldout(m_image_ctx.cct, 15) << "flushing:" << log_entry
<< " " << *log_entry << dendl;
log_entry->writeback(this->m_image_writeback, ctx);
- this->m_flush_ops_will_send -= 1;
}), 0);
});
}
<< " " << *log_entry << dendl;
log_entry->writeback_bl(this->m_image_writeback, ctx,
std::move(captured_entry_bl));
- this->m_flush_ops_will_send -= 1;
}), 0);
});
} else {
ldout(m_image_ctx.cct, 15) << "flushing:" << log_entry
<< " " << *log_entry << dendl;
log_entry->writeback(this->m_image_writeback, ctx);
- this->m_flush_ops_will_send -= 1;
}), 0);
});
}