commit 70125e78e4d21df2d06eea1ddf744a7bf42a4336
Author: Matthew Dillon <[email protected]>
Date: Sat Jul 9 11:34:24 2011 -0700
HAMMER VFS - Fix inconsistent atime updates on read()
* HAMMER's optimization of the read() path to improve concurrency broke
atime updates in the cache case. There was a big XXX comment in the
code about it.
* Fix the issue in a way that avoids acquiring the fs_token in the cache
case. If the ATIME flag is already set all we need to do is update
ip->ino_data.atime. If it is not set we have to get the fs_token and
go through the normal transaction.
Reported-by: marino
Summary of changes:
sys/vfs/hammer/hammer.h | 1 +
sys/vfs/hammer/hammer_inode.c | 41 +++++++++++++++++++++++++++++++++++++++++
sys/vfs/hammer/hammer_vnops.c | 11 +++++++++--
3 files changed, 51 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/70125e78e4d21df2d06eea1ddf744a7bf42a4336
--
DragonFly BSD source repository