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 2A843A0562; Tue, 4 May 2021 02:08:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 92FC44014E; Tue, 4 May 2021 02:08:23 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 7CFE04014D; Tue, 4 May 2021 02:08:22 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 9AE4B20B7188; Mon, 3 May 2021 17:08:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9AE4B20B7188 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1620086901; bh=mdB4XshmvPj7PqXes8LtvsYDTdqr+QRb1xPpcELNjig=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RgvL5SRvHLOo6eyK8lcp0I8NVA7pgfuO4oXHVWkIsMuPsh7rbS67a5El0FDz/Rfft 7CNm4XuDVPiA1/QiseuexecptDpki7CFB7hoTouTJt9U7Y4aL5K3JieAMSWKfFQuzE n3e6QWk8Wg61GMmnXZk46FfJidn9RD2AqZSshM6w= Date: Mon, 3 May 2021 17:08:21 -0700 From: Tyler Retzlaff To: Dmitry Kozlyuk Cc: dev@dpdk.org, stable@dpdk.org, Harman Kalra , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam Message-ID: <20210504000821.GA21458@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20210502023333.30351-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210502023333.30351-1-dmitry.kozliuk@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [dpdk-dev] [PATCH 1/3] eal/windows: fix use of incorrect thread ID X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 Sun, May 02, 2021 at 05:33:31AM +0300, Dmitry Kozlyuk wrote: > Interrupt thread ID retained its value after interrupt thread finish. > Other interrupt routines could then operate on the wrong thread. > Clear interrupt thread ID before thread termination. > > Fixes: 5c016fc0205a ("eal/windows: add interrupt thread skeleton") > Cc: stable@dpdk.org Acked-by: Tyler Retzlaff > > Signed-off-by: Dmitry Kozlyuk > --- > lib/eal/windows/eal_interrupts.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/lib/eal/windows/eal_interrupts.c b/lib/eal/windows/eal_interrupts.c > index 1d4cf794df..9cde02b003 100644 > --- a/lib/eal/windows/eal_interrupts.c > +++ b/lib/eal/windows/eal_interrupts.c > @@ -46,8 +46,11 @@ eal_intr_thread_main(LPVOID arg __rte_unused) > eal_intr_process(&events[i]); > } > > + intr_thread = 0; > + > CloseHandle(intr_iocp); > intr_iocp = NULL; > + > return NULL; > } > > -- > 2.29.3