From 575a58666adbca83d15468899272e8c369e903e1 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 23 Jan 2013 22:16:49 -0800 Subject: [PATCH] os/FileStore: only adjust up op queue for btrfs We only need to adjust up the op queue limits during commit for btrfs, because the snapshot initiation (async create) is currently high-latency and the op queue is quiesced during that period. This lets us revert 44dca5c, which disabled the extra allowance because it is generally bad for non-btrfs writeahead mode. Signed-off-by: Sage Weil (cherry picked from commit 38871e27eca5a34de78db23aa3663f6cb045d461) --- src/os/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 71039365e9c3d..1bab9c3c36d89 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -1907,7 +1907,7 @@ void FileStore::op_queue_reserve_throttle(Op *o) uint64_t max_ops = m_filestore_queue_max_ops; uint64_t max_bytes = m_filestore_queue_max_bytes; - if (is_committing()) { + if (btrfs_stable_commits && is_committing()) { max_ops += m_filestore_queue_committing_max_ops; max_bytes += m_filestore_queue_committing_max_bytes; } -- 2.39.5