DragonFly commits List (threaded) for 2008-07
cvs commit: src/sys/kern vfs_bio.c
dillon 2008/07/17 17:01:11 PDT
DragonFly src repository
Make some adjustments to the buffer cache:
* Retain B_ERROR instead of clearing it.
* Change B_ERROR's behavior. It no longer causes the buffer to be
invalidated on write.
* Change B_NOCACHE's behavior. It no longer causes the buffer to be
invalidated while the buffer is marked dirty.
* Code that was supposed to re-dirty a failed write buffer in brelse()
was not running because biodone() cleared the fields brelse() was
testing. Move the code to biodone().
* When attempting to reflush B_DELWRI|B_ERROR'd buffers, sleep a tick
to try to avoid a live-lock.
Revision Changes Path
1.113 +41 -27 src/sys/kern/vfs_bio.c