[Devel] [PATCH] venet: VEIP release debug patch

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Mon Nov 27 17:48:20 MSK 2017


Needed to investigate VEIP release - CT stop race.

https://jira.sw.ru/browse/PSBM-78078

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 drivers/net/venetdev.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/venetdev.c b/drivers/net/venetdev.c
index 11f4a66..dcdb51d 100644
--- a/drivers/net/venetdev.c
+++ b/drivers/net/venetdev.c
@@ -256,8 +256,12 @@ static void __veip_stop(struct ve_struct *ve)
 		ptr = list_entry(p, struct ip_entry_struct, ve_list);
 		ptr->active_env = NULL;
 
-		if (ptr->tgt_veip == NULL)
+		if (ptr->tgt_veip == NULL) {
+			printk("%s: removing IP for ve %d\n", __func__,
+					ptr->tgt_veip->veid);
+			dump_stack();
 			ip_entry_unhash(ptr);
+		}
 	}
 
 	veip_pool_ops->veip_release(ve);



More information about the Devel mailing list