From 3a5fa7ed9020eaf8ab843a16d26db7393b2ec072 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Fri, 26 Aug 2011 10:08:29 -0400 Subject: Introduce and use sleeplocks instead of BUSY flags Remove I_BUSY, B_BUSY, and intrans defs and usages One spinlock per buf to avoid ugly loop in bget fix race in filewrite (don't update f->off after releasing lock) --- pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pipe.c') diff --git a/pipe.c b/pipe.c index f76ed5c..bbac4dc 100644 --- a/pipe.c +++ b/pipe.c @@ -4,8 +4,8 @@ #include "mmu.h" #include "proc.h" #include "fs.h" -#include "file.h" #include "spinlock.h" +#include "file.h" #define PIPESIZE 512 -- cgit v1.2.3