HAMMER - Add MPSAFE suppor for hammer_vop_read().
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Jul 2009 03:46:45 +0000 (20:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 14 Jul 2009 03:46:45 +0000 (20:46 -0700)
commit42cd5131b0bc761c49ab4d67fc5cf88a4c03be8b
tree65828ab6b51f2bddbb20719caa78be9e576d1b0d
parentc0885fab015851c4716c393c27efdbfc37a7cd67
HAMMER - Add MPSAFE suppor for hammer_vop_read().

This is still a bit of a hack.  If vfs.read_mpsafe is set HAMMER will
run MPSAFE for reads from regular files which are cached in the buffer
cache.  Data which is not cached will fall-back to getting the MP lock.

At the moment enabling this operation will cause atime to not get updated
on fully cached files, because the rest of HAMMER is not MPSAFE yet so I
cannot modify the internal hammer_inode state.
sys/vfs/hammer/hammer_inode.c
sys/vfs/hammer/hammer_vnops.c