[Devel] [PATCH RHEL7 COMMIT] veip: Add commentary about veip_shutdown_hook

Konstantin Khorenko khorenko at virtuozzo.com
Thu Dec 7 15:05:42 MSK 2017


The commit is pushed to "branch-rh7-3.10.0-693.11.1.vz7.39.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.11.1.vz7.39.1
------>
commit e3f4a0b80e85bd3ae33792e414230b230dcb6dd6
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Thu Dec 7 15:05:42 2017 +0300

    veip: Add commentary about veip_shutdown_hook
    
    We move this functionality to userspace. Add a comment,
    to not forget to delete the hook from kernel.
    
    Link: https://jira.sw.ru/browse/PSBM-77750
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/net/venetdev.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/venetdev.c b/drivers/net/venetdev.c
index 11f4a66aaf3d..b4786a9915eb 100644
--- a/drivers/net/venetdev.c
+++ b/drivers/net/venetdev.c
@@ -1185,6 +1185,12 @@ static void veip_shutdown_fini(void *data)
 	veip_shutdown(data);
 }
 
+/*
+ * veip is already removed from userspace by vzctl
+ * since libvzctl-7.0.449: PSBM-77750.
+ * Remove this hook couple releases after the vzctl
+ * version begins used in official Virtuozzo 7.
+ */
 static struct ve_hook veip_shutdown_hook = {
 	.fini		= veip_shutdown_fini,
 	.priority	= HOOK_PRIO_FINISHING,


More information about the Devel mailing list