[Devel] [PATCH RHEL7 COMMIT] Revert "ve/sysfs: make dev/char/ directory tagged with VE tag"

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 15 13:26:42 MSK 2017


The commit is pushed to "branch-rh7-3.10.0-514.26.1.vz7.35.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.26.1.vz7.35.8
------>
commit eee9028d38715934a3b4cefa442be92feaeb8b28
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Fri Sep 15 13:20:33 2017 +0300

    Revert "ve/sysfs: make dev/char/ directory tagged with VE tag"
    
    This reverts commit c6c3f8f70a83de010a722f4ffcd876eac51cd676.
    
    sysfs: don't use VE namespace for "dev/char" directory
    
    Looks like we don't have devices, using it. Or lost some patches.
    Anyway, currently it doesn't work. To make this VE namespace work, "namespace"
    callback has to be added to ve_kobj_type. And this callback has to get VE
    structure from kobject somehow. IOW, device has to be allocated per-ve.
    Another issue here is that it's unclear, how to mark generic devices as
    allocated in VE#0 thus making them visible in VE#0.
    Looks like the whole idea was wrong...
    
    https://jira.sw.ru/browse/PSBM-71811
    
    Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
    Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
    
    khorenko@: other patches of that patchset are to be reviewed as well
    in the scope of https://jira.sw.ru/browse/PSBM-72008
    
    c6c3f8f ve/sysfs: make dev/char/ directory tagged with VE tag
    77494f1 ve/sysfs: allow symlinks between tagged and generic directories
    6fc34bb ve/kobject: new type for VE-aware object introduced
    fb49c37 ve/kobject: introduce new namespace tag and operations for VE
---
 drivers/base/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 80cf3eb..da37485 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -27,7 +27,6 @@
 #include <linux/async.h>
 #include <linux/pm_runtime.h>
 #include <linux/netdevice.h>
-#include <linux/ve.h>
 
 #include "base.h"
 #include "power/power.h"
@@ -1538,7 +1537,7 @@ int __init devices_init(void)
 	sysfs_dev_block_kobj = kobject_create_and_add("block", dev_kobj);
 	if (!sysfs_dev_block_kobj)
 		goto block_kobj_err;
-	sysfs_dev_char_kobj = kobject_create_and_add_ve("char", dev_kobj);
+	sysfs_dev_char_kobj = kobject_create_and_add("char", dev_kobj);
 	if (!sysfs_dev_char_kobj)
 		goto char_kobj_err;
 


More information about the Devel mailing list