Add two checks for potential buffer cache races.
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 17:14:04 +0000 (17:14 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 17:14:04 +0000 (17:14 +0000)
commita0da602db2be8b7a1ad1041f0815e3fb4a72b177
tree6686fb7c99dc9df76e3f89f291b9b156663c8de5
parentb9bc8a8caa8ab3a31ead282e83233883c7083657
Add two checks for potential buffer cache races.

"Warning buffer %p (vp %p lblkno %d) was recycled"
    Occurs if a buffer is recycled unexpectedly.  The code will print this
    warning and retry if it detects the case.

"Warning invalid buffer %p (vp %p lblkno %d) did not have cleared b_blkno cache"
    Occurs if a B_INVAL buffer's b_blkno cache has not been reset.  The
    code will reset the cache if it detects this case.
sys/kern/vfs_bio.c