From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A63DC3403F8; Thu, 20 Aug 2026 17:31:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787247101; cv=none; b=QXUj6U1dZLnZKWBb0dWWk9OS0EWHYq8AycZYiqyf4e+/8w3pZeex5aVxmYh/dRS76vYpwJDYfvycvjkR1NH9Dz5Ee29J6Cgw/VZvdS+pLnEbLayW7vwtAujaWMU3wToB6KzfFaRqtLpaBZoGywOoYK3exX/cUfDJTwOWd4NsYAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787247101; c=relaxed/simple; bh=sPhUiohkXaMiFyz8/5p/p8/izgN6pjiue398r0LAaKI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=quh6/GxZx2iN5XVmMfKLzqf1lx0sb+W8vQOASzmH1ugH2I8jaysKPvRxDpClVLgoUO4knxlbnY46UhTS6h3C21knY+4b7grm/xUUIHaaGlc6pOtfreJ54qqIxuSPdcVL23WIt8tNlP2Q5CzzNyYTLVbIpyxzuw/+CMIGjmK0haA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0+YfDgJO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0+YfDgJO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5A811F000E9; Thu, 20 Aug 2026 17:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787247100; bh=5eNBg+VHASNpVJSvKjJCuqgsixydfQu++4lfJCDcgrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=0+YfDgJOjAtX0COeIq9fAnCpUnHYB8QqUzsNp1qJjMV4m1D6EmPbrtHEYVGDV+fe1 M0nJ9ZiHJLa7/cGBfG7drTXFYTJPY186FmSLUXZxL0MTRp3EqfdA8Wk60U25re9LHx k4Ja3306uDi/ONmqLgkGnfoJqjzWKzOnyNmpl7f8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Maciej Fijalkowski , David Carlier , Dima Ruinskiy , Moriya Kadosh , Tony Nguyen , Sasha Levin Subject: [PATCH 6.12 150/220] igc: remove napi_synchronize() in igc_down() Date: Thu, 20 Aug 2026 16:55:40 +0200 Message-ID: <20260820145227.980428944@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820145223.480031205@linuxfoundation.org> References: <20260820145223.480031205@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Carlier [ Upstream commit 5ffab5b9589c50e4cfc0cf36ffd76c89422d4019 ] When an AF_XDP zero-copy application is killed abruptly, the XSK pool is torn down but NAPI keeps polling. igc_clean_rx_irq_zc() then returns the full budget on every poll, so napi_complete_done() never clears NAPI_STATE_SCHED. igc_down() calls napi_synchronize() before napi_disable(), so it spins forever waiting for that bit and the interface never goes down. Drop the napi_synchronize() and let napi_disable() do the job -- it sets NAPI_STATE_DISABLE, which forces the stuck poll to complete. Reorder it ahead of igc_set_queue_napi() so the NAPI mapping is cleared only after polling has stopped, matching the recent igb fix b1e067240379. Fixes: fc9df2a0b520 ("igc: Enable RX via AF_XDP zero-copy") Suggested-by: Maciej Fijalkowski Cc: stable@vger.kernel.org Signed-off-by: David Carlier Reviewed-by: Maciej Fijalkowski Reviewed-by: Dima Ruinskiy Tested-by: Moriya Kadosh Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/igc/igc_main.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -5199,7 +5199,6 @@ void igc_down(struct igc_adapter *adapte for (i = 0; i < adapter->num_q_vectors; i++) { if (adapter->q_vector[i]) { - napi_synchronize(&adapter->q_vector[i]->napi); napi_disable(&adapter->q_vector[i]->napi); } }