venet: VEIP release debug patch

Submitted by Stanislav Kinsburskiy on Nov. 27, 2017, 2:48 p.m.

Details

Message ID 20171127144815.18419.49126.stgit@localhost.localdomain
State New
Series "venet: VEIP release debug patch"
Headers show

Commit Message

Stanislav Kinsburskiy Nov. 27, 2017, 2:48 p.m.
Needed to investigate VEIP release - CT stop race.

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

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

Patch hide | download patch | download mbox

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);

Comments

Stanislav Kinsburskiy Nov. 27, 2017, 2:56 p.m.
Sorry, ignore

27.11.2017 15:48, Stanislav Kinsburskiy пишет:
> Needed to investigate VEIP release - CT stop race.
> 
> https://jira.sw.ru/browse/PSBM-78078
> 
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky@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);
> 
> _______________________________________________
> Devel mailing list
> Devel@openvz.org
> https://lists.openvz.org/mailman/listinfo/devel
>