[Devel] [PATCH RHEL9 COMMIT] /proc/<pid>/aio: add dummy read method
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Dec 27 14:56:14 MSK 2021
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.37
------>
commit 2e1415a2bc0b669f4e73d0881ec9befb210d73cf
Author: Nikita Yushchenko <nikita.yushchenko at virtuozzo.com>
Date: Mon Dec 27 14:56:14 2021 +0300
/proc/<pid>/aio: add dummy read method
To address LTP proc01 test failure, add a dummy read method for
vz-specific /proc/<pid>/aio.
The dummy method does nothing and always returns 0.
Fixes: 71af3cb679bc ("ve/aio: Add a handle to checkpoint/restore AIO context")
Signed-off-by: Nikita Yushchenko <nikita.yushchenko at virtuozzo.com>
---
fs/proc/base.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index b1609703b90a..e7002f069961 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2739,8 +2739,14 @@ static long proc_aio_ioctl(struct file *file, unsigned int cmd, unsigned long ar
return ret;
}
+ssize_t proc_aio_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
+{
+ return 0;
+}
+
static const struct file_operations proc_aio_operations = {
.unlocked_ioctl = proc_aio_ioctl,
+ .read = proc_aio_read,
};
#endif /* CONFIG_VE */
More information about the Devel
mailing list