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 21CB3A0A02 for ; Thu, 14 Jan 2021 09:34:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01C71140FEB; Thu, 14 Jan 2021 09:34:33 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 53628140FDF for ; Thu, 14 Jan 2021 09:34:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610613269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7s26z5o5vG7edffcqLDus5JRG4sHLRtwTGzcoY+hWoE=; b=AEseflzErXMygMWTXT7I5AD5tLnBDEZTEG/bhfkxgNL3gMlErrgtii37neCJwbVkNuDNfM 5wdbss6A7MeiwRYHMZY1srqNFeSGTzmnUNw9SHFF41JO6A2YLM8aluV5JMz3Bx8AU9/V80 SRBLlNM4pHxydCDIwZxuSxQ6OErUDto= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-99-b6V0cBRSMd2mQSdf0dDCGA-1; Thu, 14 Jan 2021 03:34:28 -0500 X-MC-Unique: b6V0cBRSMd2mQSdf0dDCGA-1 Received: by mail-ua1-f69.google.com with SMTP id c1so414972uab.4 for ; Thu, 14 Jan 2021 00:34:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7s26z5o5vG7edffcqLDus5JRG4sHLRtwTGzcoY+hWoE=; b=GSL5pP5Q1tkSPGjx66Rh+0iC0qMLVmfZOXI8EFab5TOVltqY4OqJLQg642NCy3g6Yf MJ8fQpyjZ90yeJss16+trZbMGB4K7eLf4dzJF+xzSOPjeqVFMThW7HIL5jU2o7uRKysQ 2GkjqczbjFJUq086Cv/hk2Dsoc/57ZUX1oGOgzpMmAvzpQDnotps1RohkmEQpBQQTIxU r4rG5J4ZTKQlecTMKC6wEM5qy2ZCBVxrL2/hxLBNgGlJ6T4hLW+tUi8B2aco++hUsROM 7po4dVudXcph60YhZXlD8+Bup2UZWk7XnFGCogBc/1vxvcDGGz6Je/1AyO77sESfSLN7 425w== X-Gm-Message-State: AOAM531yAujzOAIsMmjkm54NfbkkSooPgU0pLUJgMvCBALFVNpjS2MeH IgMapqQL7gRu4mXG+jjYHHV7dDCcE2foI3507p+eEJQxvLnRXz3vL6AnLji9IWNM/ZYg450Q43v jpquXBKydWLDcq/Z1u160bHw= X-Received: by 2002:a05:6102:3136:: with SMTP id f22mr4348251vsh.17.1610613267943; Thu, 14 Jan 2021 00:34:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDK0yN4rvpbkBIxMnhO5obiyjW1ijJLupgvc8oOJjSfxetb17U0nAY2Yf+SVLwYbR1rhuhR411cJ2X2OxZ7Bw= X-Received: by 2002:a05:6102:3136:: with SMTP id f22mr4348241vsh.17.1610613267803; Thu, 14 Jan 2021 00:34:27 -0800 (PST) MIME-Version: 1.0 References: <1609915409-272126-1-git-send-email-matan@nvidia.com> <746e905a-c394-44df-2c49-2afd59c05d9f@redhat.com> In-Reply-To: From: David Marchand Date: Thu, 14 Jan 2021 09:34:16 +0100 Message-ID: To: Maxime Coquelin , Matan Azrad Cc: dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH] vdpa/mlx5: fix configuration mutex cleanup 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" On Fri, Jan 8, 2021 at 9:48 AM David Marchand wrote: > > I wonder if it would be possible and cleaner to disable cancellation on > > the thread while the mutex is held? > > +1 IEEE Std 1003.1-2001/Cor 2-2004, item XBD/TC2/D6/26 is applied, adding pthread_t to the list of types that are not required to be arithmetic types, thus allowing pthread_t to be defined as a structure. It would be better to leave pthread_t alone and not interpret it: if (priv->timer_tid) { pthread_cancel(priv->timer_tid); pthread_join(priv->timer_tid, &status); } priv->timer_tid = 0; -- David Marchand