From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1EA3A0579 for ; Thu, 8 Apr 2021 16:20:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EA5E71410BB; Thu, 8 Apr 2021 16:20:16 +0200 (CEST) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id 333E11410B4 for ; Thu, 8 Apr 2021 16:20:15 +0200 (CEST) Received: by mail-wr1-f54.google.com with SMTP id x15so2358373wrq.3 for ; Thu, 08 Apr 2021 07:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z6H0v/gSsjD8MQrru4WU5GpuDLgBzXqMUtDHiJ6gd4g=; b=VgVrNChe0UA91uCCUQhnVHZw80ktr+7cZkRkdQK0PnvPsCrcdcZJ/C2u5aojrp0h03 rwqIVhHd2R2Clvi7++yHLOfxlsGAHO23aCYIxOQtw3cCcJkg6VJNwMbmocXz5Isg1vHs +da0qhEj4KPlPuIiWCJzxjOyujhdNwpNeCfI9MFaHKZoTJM+CrodG4/4f8s2vQfkQTRx XCVP+Yvhsi+mBJckDSlDluZFSGwRdjFkeOz3qHeR15cfc3MC2P+MUsocjP7l1Hydbvyb 9RcZWP4oZEEYd7l55bjchHbFVylBNgBgG4dLngluvjzwsi5f/FrA7nh3b+94Yl3jsor3 Khow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z6H0v/gSsjD8MQrru4WU5GpuDLgBzXqMUtDHiJ6gd4g=; b=m5//x9l8f0bhP6YRNw9hGAjgqkovHnV/4RbiLJNZQxcn114hi/9AZvtFt4I9MBg8lQ jY8vJrYFUJ243VFGQXKticg0ECaHFSGc4ubERFefhV8qCEJHl2jzqLojD0HPecNaLq/j 8xugYAk9rY+Dfs0CymPQUgXz3CFR4FD9AIX9zALSPIoc3r/7mfYCnWARnrbKxgO9rSJt CQr4sPUy3QAN5q3cfMAUoxPUnIIwK1nvsNcz7oL4jw2XwUY+yfrg0Wu+jynekChWz8Pf sdXjlRrkSsMIBKWtHiFRw+0sDvFZPnskHEaPqjxGvexUb8AZy1PoCoWxTD/Cco0mXRbv vSPw== X-Gm-Message-State: AOAM531zR163Qktizq5iwLnLAlnUR4nL9t24dLhmEr0POasQeFslobee cMWbmgknPdtyHeA5qBFGkc6sjQ== X-Google-Smtp-Source: ABdhPJwF7+qCRGK+SKoxUNi5p+0dxGSpGMo/TJ+d1cQnRdYoI7o5iFuBgNtqikYvFrBFhDJXyuhejw== X-Received: by 2002:a5d:4bcc:: with SMTP id l12mr11806408wrt.343.1617891614890; Thu, 08 Apr 2021 07:20:14 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id k7sm38940828wrd.24.2021.04.08.07.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 07:20:14 -0700 (PDT) Date: Thu, 8 Apr 2021 16:20:13 +0200 From: Olivier Matz To: Luc Pelletier Cc: jianfeng.tan@intel.com, Honnappa.Nagarahalli@arm.com, dev@dpdk.org, stable@dpdk.org Message-ID: <20210408142013.GA1650@platinum> References: <20210407201603.149234-2-lucp.at.work@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210407201603.149234-2-lucp.at.work@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-stable] [PATCH 2/2] eal: fix hang in ctrl thread creation error logic X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi Luc, On Wed, Apr 07, 2021 at 04:16:06PM -0400, Luc Pelletier wrote: > The affinity of a control thread is set after it has been launched. If > setting the affinity fails, pthread_cancel is called followed by a call > to pthread_join, which can hang forever if the thread's start routine > doesn't call a pthread cancellation point. > > This patch modifies the logic so that the control thread exits > gracefully if the affinity cannot be set successfully and removes the > call to pthread_cancel. > > Fixes: 6383d26 ("eal: set name when creating a control thread") > Cc: olivier.matz@6wind.com > Cc: stable@dpdk.org > > Signed-off-by: Luc Pelletier Thank you for these 2 fixes. Note the the title of your patches do not contain the version (should have been v8?). I don't know how critical it is for commiters. Acked-by: Olivier Matz