diff options
author | Christoph Hellwig | 2016-10-03 00:47:34 +0200 |
---|---|---|
committer | Dave Chinner | 2016-10-03 00:47:34 +0200 |
commit | a447d7cd15c759d8ab7f3c9c8183aa8c999d7ed4 (patch) | |
tree | 5eccbbc0cc8d2b2d4b465f1739d1487b5e26b124 /mm/filemap.c | |
parent | xfs: Document error handlers behavior (diff) | |
download | kernel-qcow2-linux-a447d7cd15c759d8ab7f3c9c8183aa8c999d7ed4.tar.gz kernel-qcow2-linux-a447d7cd15c759d8ab7f3c9c8183aa8c999d7ed4.tar.xz kernel-qcow2-linux-a447d7cd15c759d8ab7f3c9c8183aa8c999d7ed4.zip |
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>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions