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 EAF54A0524; Sun, 2 May 2021 04:33:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62ADF40140; Sun, 2 May 2021 04:33:43 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id DDE4E4013F; Sun, 2 May 2021 04:33:42 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id j4so3037695lfp.0; Sat, 01 May 2021 19:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l51WRyRaTEw6Cj0PNk6Znpc6GyMd3/NSANfzzQTezwo=; b=C4w9EYhtj6mnact1R5ZFgWnLoUQpHLKQzzFX+0QUkzDLznQzqnZ3nA1iAJqhEN7JRG c1JIiH9aqN0VFu31fBchPgSnc2Hn1XJ8P8kVxBW3LYpT8xpS7NaP6HwVmL4GL2yO9klW HcwjREwG2mImdFagKUYiLyagcjIidZhhUXSRYTGNnBKVfCj2CAiPCH/R5o7Gi1C/lk4o XcaDx6vJBHP/XxYb5Viaez+6PlvF7cmuR97AWg1ZEHueonzTqHpaxRR0oevq2TtWqCTA U3Kc6bhcbuiHt3anxwZnFfSmX9Y0Y5ex3bADlAltg3SOCzrJspVPC0CzGuCHVMfNFsEh kUhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l51WRyRaTEw6Cj0PNk6Znpc6GyMd3/NSANfzzQTezwo=; b=FgmkpUbxqmR30DoXqM0qjQZlRSs37Nu9sNoY90bDBqPxIf9rwyxw+9VAQFGtwrWHwV TJWjKeANfPh8ZIiUSz2Q1gd9C704d0Zp5RClVtr6Ec0T83GefhmtdVY47IlmQ2YQJPHY 5p++OF+pw3D8WwytmP0temsmYn+nwBWpfqpfwnEaIlj/sxP5e/o1hZd2iaw7UrmckqYv L2FkP2nfGw7fK+08jk8HNGg7bQl5OZ2NeFx5FCsXR+fGJ3PfVJrNsdyzfCeByulVdZqI NOqjcGUcaVjCxeNgb7xgUD0lCeuAhQNp0TyUf6+F5PPzwzLJpnAqRFAipTP+DUalB1wH 1/SA== X-Gm-Message-State: AOAM531GdocSw4eukFL57PjUX0ImOBXAuf5hdKkuTqUiARKEEQwVgjwt 6NmiqZGp8duPz4Txv3O+kz+41VmLQFEiJw== X-Google-Smtp-Source: ABdhPJwCVeyjqXM18ZkRZc06IylivUYcn4aDpXOg5Q+TkSccQGSa4Biz8gB0qHI7wIuCSGxxoLzklA== X-Received: by 2002:a05:6512:1295:: with SMTP id u21mr805189lfs.584.1619922822138; Sat, 01 May 2021 19:33:42 -0700 (PDT) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id w26sm716970lfn.82.2021.05.01.19.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 19:33:41 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Dmitry Kozlyuk , stable@dpdk.org, Harman Kalra , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam Date: Sun, 2 May 2021 05:33:31 +0300 Message-Id: <20210502023333.30351-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" 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 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