]> Devi Nivas Git - cs3210-lab0.git/commit
Introduce and use sleeplocks instead of BUSY flags
authorFrans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>
Fri, 26 Aug 2011 14:08:29 +0000 (10:08 -0400)
committerFrans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>
Fri, 26 Aug 2011 14:08:29 +0000 (10:08 -0400)
commit3a5fa7ed9020eaf8ab843a16d26db7393b2ec072
treebfa4ad4ae03d7d21796bacaa7eab8e3d3e4ab365
parent8a9b6dbd4468f6312f1d07226a623879f970bd4b
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)
12 files changed:
bio.c
buf.h
defs.h
file.c
file.h
fs.c
ide.c
log.c
pipe.c
spinlock.c
spinlock.h
sysfile.c