From 172d07afb260b50b61124898e2b59c22e3c0c428 Mon Sep 17 00:00:00 2001 From: himanshi1505 Date: Fri, 24 Apr 2026 23:51:45 +0530 Subject: [PATCH] fix(log): remove duplicate pushcli in log_write log_write called pushcli() twice but popcli() only once, so every FS write leaked one cli depth and left interrupts disabled after the caller's matching popcli. Drop the redundant second pushcli. --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index 4530eee..a536917 100644 --- a/log.c +++ b/log.c @@ -220,7 +220,7 @@ log_write(struct buf *b) if (log.outstanding < 1) panic("log_write outside of trans"); - pushcli(); + for (i = 0; i < log.lh.n; i++) { if (log.lh.block[i] == b->blockno) // log absorption break;