git: 9front

Download patch

ref: d22a54d5a59d6617a584ff2219c9c8865577b94a
parent: 86dc77e8c33453679bc487c638b0f2d01f0e1f05
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 27 10:58:47 EST 2025

gefs: advance epoch on task error

it's unlikely anyone has hit this, but we should
remember to advance the epoch if we run into an
error, rather than stalling out.

--- a/sys/src/cmd/gefs/fs.c
+++ b/sys/src/cmd/gefs/fs.c
@@ -3094,7 +3094,9 @@
 		sleep(5000);
 		if(agetl(&fs->rdonly))
 			continue;
+		epochstart(tid);
 		if(waserror()){
+			epochend(tid);
 			fprint(2, "task error: %s\n", errmsg());
 			continue;
 		}
@@ -3106,7 +3108,6 @@
 		tmnow(&tm, nil);
 		now = tmnorm(&tm);
 
-		epochstart(tid);
 		for(mnt = agetp(&fs->mounts); mnt != nil; mnt = mnt->next){
 			if(!(mnt->flag & Lmut))
 				continue;
--