[RHEL7,COMMIT] veip: Add commentary about veip_shutdown_hook

Submitted by Konstantin Khorenko on Dec. 7, 2017, 12:05 p.m.

Details

Message ID 201712071205.vB7C5gnx031761@finist_ce7.work
State New
Series "veip: Add commentary about veip_shutdown_hook"
Headers show

Commit Message

Konstantin Khorenko Dec. 7, 2017, 12:05 p.m.
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@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@virtuozzo.com>
---
 drivers/net/venetdev.c | 6 ++++++
 1 file changed, 6 insertions(+)

Patch hide | download patch | download mbox

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,