From 48aa917403de1599a02924e429a9f43ea31e9cc1 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Thu, 28 Aug 2014 05:57:47 -0400 Subject: i think this is a working concurrent logging scheme --- bio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bio.c') diff --git a/bio.c b/bio.c index de1d0f2..d2ebc4b 100644 --- a/bio.c +++ b/bio.c @@ -80,6 +80,8 @@ bget(uint dev, uint sector) } // Not cached; recycle some non-busy and clean buffer. + // "clean" because B_DIRTY and !B_BUSY means log.c + // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){ b->dev = dev; -- cgit v1.2.3