看板 DFBSD_commit 關於我們 聯絡資訊
commit 899eb297501681913674633aa0823adb6809437c Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Jul 14 00:14:12 2009 -0700 HAMMER - new hammer_lock code, fix mplock bug in last commit, mpsafe getattr. * Fix a mplock bug in the last commit that can cause a panic in hammer_read. The mplock check code wasn't setting up the hammer transaction properly. * VMP_GETATTR is now set on all HAMMER vnodes. If sysctl vfs.getattr_mpsafe=1 all fstat() operations will run without the MP lock. * Rewrite HAMMER's lock code, making it MPSAFE. The new lock code uses atomic_cmpset_int(). Summary of changes: sys/vfs/hammer/hammer.h | 23 +++- sys/vfs/hammer/hammer_inode.c | 3 +- sys/vfs/hammer/hammer_subs.c | 284 +++++++++++++++++++++++++++-------------- sys/vfs/hammer/hammer_vnops.c | 16 ++- 4 files changed, 222 insertions(+), 104 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/899eb297501681913674633aa0823adb6809437c -- DragonFly BSD source repository