From: anserper Date: Wed, 16 Sep 2009 22:04:48 +0000 (+0000) Subject: b=18801 X-Git-Tag: v1_8_2_01~1^2~103 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=84078e11f9bb9a0a6e552ac4c2e57cab77c8940b;p=fs%2Flustre-release.git 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 --- 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);