summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-10-03 09:48:08 +1100
committerDave Chinner <david@fromorbit.com>2016-10-03 09:48:08 +1100
commit0d5b0cf246a3227d811e7bf55d756b273408e414 (patch)
tree08163c5359913d1747cc2ef74394b313c0949cbd /fs
parenta447d7cd15c759d8ab7f3c9c8183aa8c999d7ed4 (diff)
downloadlinux-0d5b0cf246a3227d811e7bf55d756b273408e414.tar.gz
linux-0d5b0cf246a3227d811e7bf55d756b273408e414.tar.xz
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions