From 2e9ee2fe20b018b8094b628c3aa1f2b1f49d5b8c Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 22 Feb 2025 14:16:38 +0300 Subject: [PATCH] Do not try to repeat pending writebacks --- src/client/cluster_client_wb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/cluster_client_wb.cpp b/src/client/cluster_client_wb.cpp index 84f7fcc9..d21602c3 100644 --- a/src/client/cluster_client_wb.cpp +++ b/src/client/cluster_client_wb.cpp @@ -248,7 +248,7 @@ int writeback_cache_t::repeat_ops_for(cluster_client_t *cli, osd_num_t peer_osd, for (auto wr_it = dirty_buffers.begin(), flush_it = wr_it, last_it = wr_it; ; ) { bool end = wr_it == dirty_buffers.end(); - bool flush_this = !end && wr_it->second.state != CACHE_REPEATING; + bool flush_this = !end && wr_it->second.state != CACHE_REPEATING && wr_it->second.state != CACHE_DIRTY; if (peer_osd) flush_this = flush_this && cli->affects_osd(wr_it->first.inode, wr_it->first.stripe, wr_it->second.len, peer_osd); if (pool_id && pg_num)