[Devel] [PATCH vz7] /proc/<pid>/aio: add dummy read method

Nikita Yushchenko nikita.yushchenko at virtuozzo.com
Mon Dec 13 11:31:23 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 dbf5a84b604f..eafb5574c543 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2511,8 +2511,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