[dpdk-stable] patch 'malloc: fix duplicate mem event notification' has been queued to LTS release 18.11.1

Kevin Traynor ktraynor at redhat.com
Fri Jan 4 14:24:14 CET 2019


Hi,

FYI, your patch has been queued to LTS release 18.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 01/11/19. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Thanks.

Kevin Traynor

---
>From 3c66bad246c40c5eeadf8c2f222c818a5d4f6739 Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Tue, 11 Dec 2018 16:48:28 +0000
Subject: [PATCH] malloc: fix duplicate mem event notification

[ upstream commit b3e735e16e07de79fb09dfb485eae2965c952d74 ]

We already trigger a mem event notification inside the walk function,
no need to do it twice.

Fixes: f32c7c9de961 ("malloc: enable event callbacks for external memory")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 lib/librte_eal/common/rte_malloc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/librte_eal/common/rte_malloc.c b/lib/librte_eal/common/rte_malloc.c
index 0da5ad5e8..5f07b981a 100644
--- a/lib/librte_eal/common/rte_malloc.c
+++ b/lib/librte_eal/common/rte_malloc.c
@@ -518,11 +518,6 @@ sync_memory(const char *heap_name, void *va_addr, size_t len, bool attach)
 		rte_errno = -wa.result;
 		ret = -1;
-	} else {
-		/* notify all subscribers that a new memory area was added */
-		if (attach)
-			eal_memalloc_mem_event_notify(RTE_MEM_EVENT_ALLOC,
-					va_addr, len);
+	} else
 		ret = 0;
-	}
 unlock:
 	rte_rwlock_read_unlock(&mcfg->memory_hotplug_lock);
-- 
2.19.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-01-04 13:23:08.209896592 +0000
+++ 0032-malloc-fix-duplicate-mem-event-notification.patch	2019-01-04 13:23:07.000000000 +0000
@@ -1,13 +1,14 @@
-From b3e735e16e07de79fb09dfb485eae2965c952d74 Mon Sep 17 00:00:00 2001
+From 3c66bad246c40c5eeadf8c2f222c818a5d4f6739 Mon Sep 17 00:00:00 2001
 From: Anatoly Burakov <anatoly.burakov at intel.com>
 Date: Tue, 11 Dec 2018 16:48:28 +0000
 Subject: [PATCH] malloc: fix duplicate mem event notification
 
+[ upstream commit b3e735e16e07de79fb09dfb485eae2965c952d74 ]
+
 We already trigger a mem event notification inside the walk function,
 no need to do it twice.
 
 Fixes: f32c7c9de961 ("malloc: enable event callbacks for external memory")
-Cc: stable at dpdk.org
 
 Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
 ---


More information about the stable mailing list