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

Vasily Averin vvs at virtuozzo.com
Thu Dec 30 16:58:38 MSK 2021


The commit is pushed to "branch-rh7-3.10.0-1160.42.2.vz7.184.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.42.2.vz7.184.7
------>
commit 251aa9bf7af2c9fa45ec1314144d2fd1fb5bea0c
Author: Nikita Yushchenko <nikita.yushchenko at virtuozzo.com>
Date:   Thu Dec 30 16:58:38 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.
    
    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 dbf5a84..eafb557 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 */
 


More information about the Devel mailing list