Frans Kaashoek
3a5fa7ed90
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)
2011-08-26 10:08:29 -04:00
Austin Clements
843eecfcd0
Only commit log to disk if something was written in to it.
...
Without this, every write to the console results in log writes.
2011-08-15 14:12:35 -04:00
Robert Morris
5053dd6a6d
avoid deadlock by calling begin_trans() before locking any inodes
2011-08-15 12:44:20 -04:00
Robert Morris
2e59046362
log write() data
...
usertest for big write()s
push begin_trans/commit_trans down into syscalls
2011-08-12 09:25:39 -04:00
Frans Kaashoek
13a96baefc
Dirt simple logging
...
Passes usertests and stressfs
Seems to recover correctly in a number of simple cases
2011-07-27 20:35:46 -04:00