From 1bef1b58d48ef909f2271068fa692d4ebafb79a3 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 26 Mar 2022 15:29:38 -0700 Subject: [PATCH] fs: also update comment, for locking --- .../source/fssystem/fssystem_crypto_configuration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/libstratosphere/source/fssystem/fssystem_crypto_configuration.cpp b/libraries/libstratosphere/source/fssystem/fssystem_crypto_configuration.cpp index b43faf929..5a3179a28 100644 --- a/libraries/libstratosphere/source/fssystem/fssystem_crypto_configuration.cpp +++ b/libraries/libstratosphere/source/fssystem/fssystem_crypto_configuration.cpp @@ -139,11 +139,11 @@ namespace ams::fssystem { constexpr size_t MinimumSizeToRequireLocking = 256_KB; constexpr size_t MinimumWorkBufferSize = 16_KB; - /* If the request isn't too large, acquire a lock to prevent too many large requests in flight simultaneously. */ - static constinit os::SdkMutex s_small_work_buffer_mutex; + /* If the request is large enough, acquire a lock to prevent too many large requests in flight simultaneously. */ + static constinit os::SdkMutex s_large_work_buffer_mutex; util::optional> lk = util::nullopt; if (dst_size >= MinimumSizeToRequireLocking) { - lk.emplace(s_small_work_buffer_mutex); + lk.emplace(s_large_work_buffer_mutex); } /* Allocate a pooled buffer. */