From 84078e11f9bb9a0a6e552ac4c2e57cab77c8940b Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 16 Sep 2009 22:04:48 +0000 Subject: [PATCH] b=18801 i=Johann Lombardi i=Dmitry Zogin update atime in inode before calling ll_direct_IO so that the DIO code should send the correct atime stamps to OSTs --- lustre/llite/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index bcac1ff..e021fc4 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -1635,9 +1635,9 @@ repeat: <d.u.tree, OBD_BRW_READ); up_read(&lli->lli_truncate_rwsem); } else { + file_accessed(file); retval = ll_direct_IO(READ, file, iov_copy, *ppos, nr_segs, 0); if (retval > 0) { - file_accessed(file); lprocfs_counter_add(sbi->ll_stats, LPROC_LL_LOCKLESS_READ, (long)retval); -- 1.8.3.1