From 2adb7c21dcbf50941b46f1e8d5f1b26ba86f2413 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Sun, 11 Sep 2016 20:17:22 -0400 Subject: Move retry loop/sleep/wakeup in bio.c into sleeping locks --- buf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'buf.h') diff --git a/buf.h b/buf.h index 0745be5..3266495 100644 --- a/buf.h +++ b/buf.h @@ -3,6 +3,7 @@ struct buf { uint dev; uint blockno; struct sleeplock lock; + uint refcnt; struct buf *prev; // LRU cache list struct buf *next; struct buf *qnext; // disk queue -- cgit v1.2.3