Whamcloud - gitweb
b=18801
authoranserper <anserper>
Wed, 16 Sep 2009 22:04:48 +0000 (22:04 +0000)
committeranserper <anserper>
Wed, 16 Sep 2009 22:04:48 +0000 (22:04 +0000)
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

index bcac1ff..e021fc4 100644 (file)
@@ -1635,9 +1635,9 @@ repeat:
                                  &ltd.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);