git: VN - Remove use of IO_DIRECT, Improve lock performance for

看板DFBSD_commit作者時間16年前 (2010/03/03 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit b527c4c540cc186db2c8aa7105d074135e7b8ea5 Author: Matthew Dillon <dillon@apollo.backplane.com> 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 <vince.dragonfly@hightek.org> Summary of changes: sys/dev/disk/vn/vn.c | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b527c4c540cc186db2c8aa7105d074135e7b8ea5 -- DragonFly BSD source repository
文章代碼(AID): #1BZX1r2I (DFBSD_commit)