]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_tailqs.c
service: fix race in service on app lcore function
[dpdk.git] / lib / librte_eal / common / eal_common_tailqs.c
index bb08ec8b9e0bebaa6f3afaa2459ce2a27c5c69e7..6ae09fdb0a3f9f847ee5322bc1059b7677abff1b 100644 (file)
 #include <inttypes.h>
 
 #include <rte_memory.h>
-#include <rte_memzone.h>
 #include <rte_launch.h>
 #include <rte_eal.h>
 #include <rte_eal_memconfig.h>
 #include <rte_per_lcore.h>
 #include <rte_lcore.h>
-#include <rte_memory.h>
 #include <rte_atomic.h>
 #include <rte_branch_prediction.h>
 #include <rte_log.h>
@@ -188,8 +186,7 @@ rte_eal_tailqs_init(void)
                if (t->head == NULL) {
                        RTE_LOG(ERR, EAL,
                                "Cannot initialize tailq: %s\n", t->name);
-                       /* no need to TAILQ_REMOVE, we are going to panic in
-                        * rte_eal_init() */
+                       /* TAILQ_REMOVE not needed, error is already fatal */
                        goto fail;
                }
        }