From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89F8C606A322 for ; Thu, 3 Dec 2026 07:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=dit9T6sw; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HqVAM4cg Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5FA26869F8; Thu, 3 Dec 2026 07:17:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Qlw9a-uFgsJs; Thu, 3 Dec 2026 07:17:51 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 85FBE869FB Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796282271; b=oyomJZo0VraxprM8YVsz0JcHorPz+CMxCv6lnXom/BHWeWupD3P08KvxD9GF9JQZeMf6 y/jnCifoFzwN7ZwJJwZigoMkZEFQzV6qcmdgdW00fgRnjczTTIOODnFwPFS5dAEEgT4bO f/qYnAa8xcBYSiveMR5vppCb+ax9/k5PIKI1dcQWBWYeyU4FGBt7P7bTMCVgAGApD+mdB usJncsvkLTjlMOAzWNaeESU9ud4Go0ia8WSFI19Vjm2jXwoEaamSPuMvwuCtM1mNTTmXW cXt9p2EIf5BWaBQVcQQoFcj0FDpPDmf23ercABOaz8/mexwAK/UioesgjiBOvnbth6A== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796282271; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:DKIM-Signature:Message-ID:From:Subject:To:Cc:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:Date:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:Errors-To; bh=n7X5lA5YZRWR7/RfmtIFN9irr0nlLTEaEjVgvCKQrs8=; b=WDWBV4fdi0H5uTo+oqCWDXyw2ty7zqEOY4h6U8Xf2M3vVKBQoIXQW9In3ZoUDYRrZ3d2 qxvveW/RtmfNEsbbDUiq9Wd5/zFY0R0qliTFwFXE+cHYpka3JgYsV0eCw8PPMauB+QO55 CnOBVFLecbAmXM6dOG6SKbZlvcFLVxsHRaRvj/Tuf/CwnnroLwlmIk+PiASKYuF4cYoqW q5O66QzdRYclzZSS6ROtTWyns79YYSjKEOG3vQ1tC+BkBRp2tdZk1IlMtB47Or/vtLkAm VYxr2PcINLnu5zBJbiG5czs2yA9bTK06qS2evI5rGE41HQvuojQp8TK8qE6wcPc11/w== ARC-Authentication-Results: i=1; smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796282271; bh=n7X5lA5YZRWR7/RfmtIFN9irr0nlLTEaEjVgvCKQrs8=; h=From:Subject:To:Cc:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=dit9T6swhRHk/17pgJqCULUSlNkReL0SjWsZPjSEXukbd1kudkATWRCCwBk29eME5 19/vwEuLTAd8+vqzyLhCmkX34liSdtuM0TkpCfi+cGRW6H1Cn37puFzpi0QJWSmjfp 50XmhCFvLaVot2Qi068JZymblJIDGaDCviDyRe0rKWo5z09ptGmYBGjYuibsL41UF5 7alUToIC1MpT+950JaPrx7xv0smmb8uG2pT4eqAdEwjxn5UEuTHdN24wT8XFmVwYNp EasQUp0HaYs/qEtG5F8viywtoOVhtBga60msrcurP/h2hu+xH5hytiiS1M2bfRfnMF b7VO8/yQzOUGw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 85FBE869FB; Thu, 3 Dec 2026 07:17:51 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 8C84C33E for ; Thu, 3 Dec 2026 07:17:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 7268961B42 for ; Thu, 3 Dec 2026 07:17:49 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0C4r6A8vP6qR for ; Thu, 3 Dec 2026 07:17:48 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 7C9A261707 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=172.105.4.254 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HqVAM4cg Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by smtp3.osuosl.org (Postfix) with ESMTPS id 7C9A261707 for ; Thu, 3 Dec 2026 07:17:47 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 6A47261B7B; Thu, 3 Dec 2026 07:17:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13F9B1F00893; Thu, 3 Dec 2026 07:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796282266; bh=n7X5lA5YZRWR7/RfmtIFN9irr0nlLTEaEjVgvCKQrs8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=HqVAM4cgJpb02+O3BODAw8fjmXqIUiG9IV5c25GBIg266lWhN0uMu/qgkv/rH9C+h nOE/Y0sM5d/LzOUp1NKMRjAD+XLBlvTKxY68TVc5bRRfw0VxutRtvGMzzGL2T2Zpcr E1Vh0tCUjJ3P+O0+JPRY1GLkQPmlQWGG7sSkkO1Rlu1XfdxU5GW127GBrmAmgGLZlg wtcB8VneObspGE87QQY5ZKkpqa+Ym00gz0E3+eHJ3fcrBDobDqKA5Fq2v2p+F2FyQA GFpLQTG1/5V/dsK3q1894FN+2SFki/xhV1f4GOjcjBSZwYMjdbUcGZCoHCVHWpyAIw Yl6xv9Ni4tDUg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net v7 1/4] ice: stop the service task before the PF is unloaded To: "Petr Oros" Cc: intel-wired-lan@lists.osuosl.org In-Reply-To: <20261202071642.2527605-2-poros@redhat.com> References: <20261202071642.2527605-1-poros@redhat.com> <20261202071642.2527605-2-poros@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 07:17:45 +0000 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ice: clear_bit(ICE_SERVICE_SCHED) before disable_work_sync() in shutdown -- commit 48baf63ed8e1c70522d51d9b9db9d607dcfc0c36 Author: Petr Oros ice: stop the service task before the PF is unloaded This commit adds ice_service_task_shutdown() to permanently stop the service work and timer, and calls it alongside ice_aq_cancel_waiting_tasks() after ice_free_vfs() in ice_remove(). > diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethe= rnet/intel/ice/ice_main.c > index 47c6798c97e8f..b05eda1bf50ae 100644 > --- a/drivers/net/ethernet/intel/ice/ice_main.c > +++ b/drivers/net/ethernet/intel/ice/ice_main.c > @@ -1707,6 +1707,22 @@ static int ice_service_task_stop(struct ice_pf *pf) > return ret; > } > =20 > +/** > + * ice_service_task_shutdown - stop the service task for PF removal > + * @pf: board private structure > + * > + * A caller that passed the ICE_SERVICE_DIS test before the stop can > + * still queue the work after it, and a run in progress can arm the > + * timer after its delete. The PF is going away, so make both > + * permanently dead, nothing restarts them. > + */ > +static void ice_service_task_shutdown(struct ice_pf *pf) > +{ > + ice_service_task_stop(pf); > + disable_work_sync(&pf->serv_task); > + timer_shutdown_sync(&pf->serv_tmr); > +} [Severity: Low] Can calling ice_service_task_stop() before disable_work_sync() trigger WARN_ON(!test_bit(ICE_SERVICE_SCHED, pf->state)) in ice_service_task_complete()? ice_service_task_stop() runs cancel_work_sync(&pf->serv_task), which leaves pf->serv_task enabled on return, and then clears ICE_SERVICE_SCHED before disable_work_sync() disables the work item: CPU0 CPU1 ice_service_task_shutdown() ice_service_task_schedule() !test_bit(ICE_SERVICE_DIS, ...) !test_and_set_bit(ICE_SERVICE_SCHED, ..= .) ice_service_task_stop() test_and_set_bit(ICE_SERVICE_DIS, ...) cancel_work_sync(&pf->serv_task) clear_bit(ICE_SERVICE_SCHED, ...) queue_work(ice_wq, &pf->serv_task) ice_service_task() ice_service_task_complete() WARN_ON(!test_bit(ICE_SERVICE_SCHED, = ...)) disable_work_sync(&pf->serv_task) Setting ICE_SERVICE_DIS, running timer_shutdown_sync(&pf->serv_tmr) and disable_work_sync(&pf->serv_task), and only clearing ICE_SERVICE_SCHED afterward would close this window. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202071642.2527= 605-1-poros@redhat.com?part=3D1