[Devel] [PATCH RHEL8 COMMIT] ve: remove /proc/fairsched(, 2) and /proc/vz/fairsched #PSBM-79882

Konstantin Khorenko khorenko at virtuozzo.com
Wed Apr 7 19:27:53 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.11
------>
commit c38eb67e3a424a54ce4887ca817e7d50365cb3fd
Author: Denis V. Lunev <den at openvz.org>
Date:   Mon Apr 5 20:37:01 2021 +0300

    ve: remove /proc/fairsched(,2) and /proc/vz/fairsched #PSBM-79882
    
    These files are legacy and are not used anymore. Dropping.
    
    To_merge: b82b22f661b3 ("ve: Add veowner")
    https://jira.sw.ru/browse/PSBM-79882
    Signed-off-by: "Denis V. Lunev" <den at openvz.org>
---
 kernel/ve/veowner.c | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/kernel/ve/veowner.c b/kernel/ve/veowner.c
index da9fd60e5282..d7b3b94bd3e6 100644
--- a/kernel/ve/veowner.c
+++ b/kernel/ve/veowner.c
@@ -21,23 +21,6 @@ EXPORT_SYMBOL(proc_vz_dir);
 struct proc_dir_entry *bc_proc_root;
 EXPORT_SYMBOL(bc_proc_root);
 
-static int proc_fairsched_open(struct inode *inode, struct file *file)
-{
-	return 0;
-}
-
-static ssize_t proc_fairsched_read(struct file *file, char __user *buf,
-				   size_t size, loff_t *ppos)
-{
-	return 0;
-}
-
-static struct file_operations proc_fairsched_operations = {
-	.open		= proc_fairsched_open,
-	.read		= proc_fairsched_read,
-	.llseek		= noop_llseek,
-};
-
 static void prepare_proc(void)
 {
 	proc_vz_dir = proc_mkdir_mode("vz", S_ISVTX | S_IRUGO | S_IXUGO, NULL);
@@ -47,14 +30,6 @@ static void prepare_proc(void)
 	bc_proc_root = proc_mkdir_mode("bc", 0, NULL);
         if (!bc_proc_root)
                 panic("Can't create /proc/bc entry");
-
-
-	/* Legacy files. They are not really needed and should be removed
-	 * sooner or later, but leave the stubs for now as they may be required
-	 * by userspace: https://jira.sw.ru/browse/PSBM-79882 */
-
-	proc_create("fairsched", S_ISVTX, NULL,	&proc_fairsched_operations);
-	proc_create("fairsched2", S_ISVTX, NULL, &proc_fairsched_operations);
 }
 #endif
 


More information about the Devel mailing list