Fix hopefully all possible deadlocks that can occur when mixed block sizes
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 28 Jun 2008 23:45:20 +0000 (23:45 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 28 Jun 2008 23:45:20 +0000 (23:45 +0000)
commit868d24aff239806e4f5ba78c9dbea2ddff57773a
treebb9b721911df4ec80a91b0cb3757b51e9db32e84
parenta9d52b76688f644d63b53aaf4884cf686b0131ff
Fix hopefully all possible deadlocks that can occur when mixed block sizes
are used with the buffer cache.  The fix is simply to base the limiting
and flushing code on a byte count rather then a buffer count.

This will allow UFS to utilizes a greater number of dirty buffers and
will cause HAMMER to use fewer.  This also makes tuning the buffer cache
a whole lot easier.
sys/kern/vfs_bio.c
sys/sys/buf.h
usr.bin/systat/vmstat.c