Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66546/?format=api
https://patches.dpdk.org/api/patches/66546/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200311143927.76021-1-harry.van.haaren@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200311143927.76021-1-harry.van.haaren@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200311143927.76021-1-harry.van.haaren@intel.com", "date": "2020-03-11T14:39:27", "name": "[v2] eal/service: fix exit by resetting service lcores", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "5c61214c3cc2f886dd9725864db92055299c6741", "submitter": { "id": 317, "url": "https://patches.dpdk.org/api/people/317/?format=api", "name": "Van Haaren, Harry", "email": "harry.van.haaren@intel.com" }, "delegate": { "id": 24651, "url": "https://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200311143927.76021-1-harry.van.haaren@intel.com/mbox/", "series": [ { "id": 8885, "url": "https://patches.dpdk.org/api/series/8885/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8885", "date": "2020-03-11T14:39:27", "name": "[v2] eal/service: fix exit by resetting service lcores", "version": 2, "mbox": "https://patches.dpdk.org/series/8885/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/66546/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/66546/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id AD9D3A056E;\n\tWed, 11 Mar 2020 15:39:07 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 81D451BF7F;\n\tWed, 11 Mar 2020 15:39:06 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 378E93B5;\n Wed, 11 Mar 2020 15:39:04 +0100 (CET)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 11 Mar 2020 07:39:03 -0700", "from silpixa00399779.ir.intel.com (HELO\n silpixa00399779.ger.corp.intel.com) ([10.237.222.209])\n by fmsmga006.fm.intel.com with ESMTP; 11 Mar 2020 07:39:01 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,541,1574150400\"; d=\"scan'208\";a=\"443573541\"", "From": "Harry van Haaren <harry.van.haaren@intel.com>", "To": "dev@dpdk.org", "Cc": "david.marchand@redhat.com, aconole@redhat.com,\n Harry van Haaren <harry.van.haaren@intel.com>, stable@dpdk.org", "Date": "Wed, 11 Mar 2020 14:39:27 +0000", "Message-Id": "<20200311143927.76021-1-harry.van.haaren@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200310133304.39951-1-harry.van.haaren@intel.com>", "References": "<20200310133304.39951-1-harry.van.haaren@intel.com>", "Subject": "[dpdk-dev] [PATCH v2] eal/service: fix exit by resetting service\n\tlcores", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This commit releases all service cores from their role,\nreturning them to ROLE_RTE on rte_service_finalize().\n\nThis may fix an issue relating to the service cores causing\na race-condition on eal_cleanup(), where the service core\ncould still be executing while the main thread has already\nfree-d the service memory, leading to a segfault.\n\nFixes: 21698354c832 (\"service: introduce service cores concept\")\nCc: stable@dpdk.org\n\nReported-by: David Marchand <david.marchand@redhat.com>\nReported-by: Aaron Conole <aconole@redhat.com>\nSigned-off-by: David Marchand <david.marchand@redhat.com>\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\nAcked-by: Aaron Conole <aconole@redhat.com>\n\n---\n\nv2:\n- Added rte_eal_mp_wait_lcore() after reset (David)\n- Added Signed-off and Acked from mailing list (David, Aaron)\n\n---\n lib/librte_eal/common/rte_service.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/rte_service.c b/lib/librte_eal/common/rte_service.c\nindex 7e537b8cd..b0b78baab 100644\n--- a/lib/librte_eal/common/rte_service.c\n+++ b/lib/librte_eal/common/rte_service.c\n@@ -122,6 +122,9 @@ rte_service_finalize(void)\n \tif (!rte_service_library_initialized)\n \t\treturn;\n \n+\trte_service_lcore_reset_all();\n+\trte_eal_mp_wait_lcore();\n+\n \trte_free(rte_services);\n \trte_free(lcore_states);\n \n", "prefixes": [ "v2" ] }{ "id": 66546, "url": "