shithub: gefs

Download patch

ref: ccf53815c52ed336f51259e7e30cbfd01c4f56e4
parent: 6841bfba89c29074d3a9161ee7f01157d22189a8
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Oct 22 16:36:04 EDT 2022

blk: flush sync blk after the current queue

--- a/blk.c
+++ b/blk.c
@@ -1058,6 +1058,9 @@
 	for(i = 0; i < fs->nsyncers; i++){
 		b = cachepluck();
 		b->type = Tmagic;
+		lock(&fs->freelk);
+		b->qgen = ++fs->qgen;
+		unlock(&fs->freelk);
 		qput(&fs->syncq[0], b);
 	}
 	while(fs->syncing != 0)