[dpdk-stable] [PATCH 2/2] eal: fix hang in ctrl thread creation error logic

David Marchand david.marchand at redhat.com
Fri Apr 9 16:34:15 CEST 2021


On Wed, Apr 7, 2021 at 10:29 PM Luc Pelletier <lucp.at.work at gmail.com> 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")

Fixed sha1's while applying.
We prefer sha1 on 12 chars, like described in
https://doc.dpdk.org/guides/contributing/patches.html#commit-messages-body.

> Cc: stable at dpdk.org
>
> Signed-off-by: Luc Pelletier <lucp.at.work at gmail.com>

Acked-by: Olivier Matz <olivier.matz at 6wind.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>

Series applied, thanks for the fixes.


-- 
David Marchand



More information about the stable mailing list