From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3368CA04BC; Thu, 8 Oct 2020 09:48:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E0F81B9F0; Thu, 8 Oct 2020 09:48:12 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id 583E51B9DC for ; Thu, 8 Oct 2020 09:48:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602143288; 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=bw+0whP7wY0xYkWBHRCJAob5wSooOcqPSbAtrnrY4wo=; b=egVYvpfL38sM3DeuWjs+7EFy6SlLjK6XvreoqSK6TEZGrpIjdEK6+dG9HF4k+DnZW/8Rng ophqjxnTzEuVRCQoSkvWQfCxDhxzac22U7ZzSngyY1oWjTlpZ1Ispu9002046zeD2hhGfs 4Zd3Ipc8iRsF/LiQdhn//NrdmNyslDw= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-196-vGlD3pA2Py6k9ydBEPnSnA-1; Thu, 08 Oct 2020 03:48:07 -0400 X-MC-Unique: vGlD3pA2Py6k9ydBEPnSnA-1 Received: by mail-vk1-f198.google.com with SMTP id e82so795228vke.9 for ; Thu, 08 Oct 2020 00:48:06 -0700 (PDT) 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=bw+0whP7wY0xYkWBHRCJAob5wSooOcqPSbAtrnrY4wo=; b=V+i5cmy+qu7ILFNyhfL1fEcJjQnL+YVImv+HUyRF9e0y1WEhVSiLuNSDQpi1sSX/n0 qShlhqoMlYon2JGAI8EyUNNd1xvb/jCT/z54OLOHjauBnoeaLJ8Gmg2CaaoTupUdD2Re KAEzLZMC1p0SCA93OHc2ico9S1T+rXN0rT1GLg5zhDSmLdwMXmMyG0cBj7ebiXWU6bC3 3dwqiKcVeQc76A6uvtyTeHrjb3qo4jq84mlI6RSACFp8Z55CLwh2bazVeLVw1nLn+WpQ iNMNMlBl04oKU7+BtJ3hAqCACUqfjssiwoPvbVunUL9/fSNAZuthHiUW1BETWEGxDnju XFBg== X-Gm-Message-State: AOAM532GhzxKFUY6++vdZIIs7LaI+JX4JqpmPd791MB40OmIv7qUC7jY 7gBVuGUuWXX/PU3j6nHAqvhxqPCRDuIbPVM9HdG7IYV9AxtdLX4ji2Dj1r3iEsKQWhJlSyo/kxM 7xUZ2rSlKacwCN9YQtJQ= X-Received: by 2002:a67:fd7a:: with SMTP id h26mr4017812vsa.27.1602143286480; Thu, 08 Oct 2020 00:48:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI7c1c6WFGur/w4La5l5p91QJ53drb1s+FDjojKOoWfn+TNluH0qVeJf6h/4TKb21KVVTJJBtXcwjUWtE/los= X-Received: by 2002:a67:fd7a:: with SMTP id h26mr4017809vsa.27.1602143286307; Thu, 08 Oct 2020 00:48:06 -0700 (PDT) MIME-Version: 1.0 References: <20200817140828.9769-1-Renata.Saiakhova@ekinops.com> <20200817140828.9769-2-Renata.Saiakhova@ekinops.com> In-Reply-To: <20200817140828.9769-2-Renata.Saiakhova@ekinops.com> From: David Marchand Date: Thu, 8 Oct 2020 09:47:55 +0200 Message-ID: To: Anatoly Burakov , Harman Kalra Cc: Bruce Richardson , Ray Kinsella , Neil Horman , dev , Renata Saiakhova 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-dev] [PATCH v2 1/1] librte_eal: rte_intr_callback_unregister_sync() - wrapper around rte_intr_callback_unregister(). X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 Mon, Aug 17, 2020 at 4:09 PM Renata Saiakhova wrote: > > Avoid race with unregister interrupt hanlder if interrupt > source has some active callbacks at the moment, use wrapper > around rte_intr_callback_unregister() to check for -EAGAIN > return value and to loop until rte_intr_callback_unregister() > succeeds. > > Signed-off-by: Renata Saiakhova Review please. -- David Marchand