Christoph Hellwig 0d5b0cf246 fs: update atime before I/O in generic_file_read_iter
After the call to ->direct_IO the final reference to the file might have
been dropped by aio_complete already, and the call to file_accessed might
cause a use after free.

Instead update the access time before the I/O, similar to how we
update the time stamps before writes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2016-10-03 09:48:08 +11:00
..
2011-07-26 16:49:47 -07:00
2016-07-28 16:07:41 -07:00
2015-09-08 15:35:28 -07:00
2016-07-28 16:07:41 -07:00
2016-08-02 19:35:15 -04:00
2016-03-17 15:09:34 -07:00
2015-11-05 19:34:48 -08:00
2016-07-26 16:19:19 -07:00
2016-03-17 15:09:34 -07:00
2016-07-26 16:19:19 -07:00
2016-07-26 14:41:47 -07:00