Christoph Hellwig a447d7cd15 xfs: update atime before I/O in xfs_file_dio_aio_read
After the call to __blkdev_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>
Reported-and-tested-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2016-10-03 09:47:34 +11:00
..
2016-04-06 09:47:01 +10:00
2016-04-06 09:47:01 +10:00
2016-03-31 00:30:15 -04:00
2016-07-27 09:53:35 -07:00
2016-02-09 16:54:58 +11:00
2016-07-20 11:48:46 +10:00
2016-04-06 09:20:36 +10:00
2016-06-01 17:38:15 +10:00
2016-04-06 09:19:55 +10:00
2016-06-01 17:38:15 +10:00