DragonFly commits List (threaded) for 2010-03
git: VN - Remove use of IO_DIRECT, Improve lock performance for reads
Author: Matthew Dillon <firstname.lastname@example.org>
Date: Tue Mar 2 23:15:27 2010 -0800
VN - Remove use of IO_DIRECT, Improve lock performance for reads
* Remove the use of IO_DIRECT. This just doesn't work very well,
particularly when the device backing the VN has a different logical
block size than the device using VN.
This will result in heavier use of the buffer cache and more
(temporarily) duplicated data, but also has much better performance.
* Use LK_SHARED for VOP_READ()s instead of LK_EXCLUSIVE, which allows
concurrent reads to be issued.
Reported-by: Vincent Stemen <email@example.com>
Summary of changes:
sys/dev/disk/vn/vn.c | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
DragonFly BSD source repository