[Devel] [PATCH vz9] /proc/<pid>/aio: add dummy read method
Nikita Yushchenko
nikita.yushchenko at virtuozzo.com
Mon Dec 13 11:06:01 MSK 2021
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.
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 */
--
2.30.2
More information about the Devel
mailing list