From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v4 10/11] eal: replace rte_panic instances in init sequence Date: Thu, 19 Apr 2018 15:57:43 +0100 Message-ID: <93afdd1b-b108-9986-5fbe-7d3aacc92ca3@intel.com> References: <1524117669-25729-1-git-send-email-arnon@qwilt.com> <1524117669-25729-11-git-send-email-arnon@qwilt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Thomas Monjalon , "Lu, Wenzhuo" , "Doherty, Declan" , jerin.jacob@caviumnetworks.com, Bruce Richardson , "Yigit, Ferruh" , dev@dpdk.org To: Arnon Warshavsky Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E787B8D28 for ; Thu, 19 Apr 2018 16:57:46 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 19-Apr-18 3:48 PM, Arnon Warshavsky wrote: > Copy on the commit messageĀ  and volatile. > > Regarding the new function defunct_and_remain_in_endless_loop () > I don't think I can put that in a separate patch without breaking the > current patch independence. How so? Just leave some panic instances in there for thread-related stuff and fix them up in the next patch. Also, i'm not sure sending threads into an infinite loop on panic is such a good idea. You might want to look at Olivier's approach [1] to creating threads, using pthread_barriers and pthread_kill/cancel. This does warrant a separate patch now :) -- Thanks, Anatoly