From da2f604e6d5c5827c538979d0f41a8e841972775 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 19 Mar 2023 23:13:56 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BD=BF=E7=94=A8=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=90=8C=E6=AD=A5=E7=9B=98=E6=97=B6=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=B9=B6=E9=80=80=E5=87=BA=E5=86=85=E6=A0=B8?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/7683?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/runtime.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/util/runtime.go b/kernel/util/runtime.go index 4a6e86ca3..fd949201d 100644 --- a/kernel/util/runtime.go +++ b/kernel/util/runtime.go @@ -144,6 +144,11 @@ func CheckFileSysStatus() { } func checkFileSysStatus() { + if IsMutexLocked(&checkFileSysStatusLock) { + logging.LogWarnf("check file system status is locked, skip") + return + } + checkFileSysStatusLock.Lock() defer checkFileSysStatusLock.Unlock()