diff options
author | Christoph Hellwig <hch@lst.de> | 2015-02-11 19:59:44 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-03-13 12:10:22 -0400 |
commit | 599bd19bdc4c6b20fd91d50f2f79dececbaf80c1 (patch) | |
tree | 782dec7d04dd789c841e3798ee4c920c9493fe2c /fs/ecryptfs/file.c | |
parent | 9d5722b7777e64de2d932f46cfee7765fdcc60d6 (diff) | |
download | op-kernel-dev-599bd19bdc4c6b20fd91d50f2f79dececbaf80c1.zip op-kernel-dev-599bd19bdc4c6b20fd91d50f2f79dececbaf80c1.tar.gz |
fs: don't allow to complete sync iocbs through aio_complete
The AIO interface is fairly complex because it tries to allow
filesystems to always work async and then wakeup a synchronous
caller through aio_complete. It turns out that basically no one
was doing this to avoid the complexity and context switches,
and we've already fixed up the remaining users and can now
get rid of this case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ecryptfs/file.c')
-rw-r--r-- | fs/ecryptfs/file.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index 6f4e659..a36da88 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c @@ -52,12 +52,6 @@ static ssize_t ecryptfs_read_update_atime(struct kiocb *iocb, struct file *file = iocb->ki_filp; rc = generic_file_read_iter(iocb, to); - /* - * Even though this is a async interface, we need to wait - * for IO to finish to update atime - */ - if (-EIOCBQUEUED == rc) - rc = wait_on_sync_kiocb(iocb); if (rc >= 0) { path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); touch_atime(path); |