From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796241258; b=hFN3eETDY40ji1LXWhYqbiKhhYh+rvSw0BRhRU8nxtI0myY81VOv/V7KiehWU0PTUqqX IUhIBa71U5pYLdsbbTcRO0IrwiIHvE4zJe4SA436N48QMYObzn2Z8YA05yT3KfNvD7hUZ LahecBpX7dHa6Uz6AqrPJLH4bW7KaczTxbAKGciVz0K51uiix9T4SLusEutpac9R56fls fBlLkMKoA5uMgAGlCr5au7vFdNDWFX5nAXSij9MP12AUhG37HX9y88Z5Y5/NZvhk3J6I0 EUWDyKSZlecvlGSkWcz9iT+8v4HhDr4fswRzIpEnXIhwcVcxKClpwn0MyL/b/PMgVOw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796241258; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=KkY7EJ4qu1b0CtGBLwHOJCEnedSrs9O4lQWeRTlwjcU=; b=pQNPAL1/4UitqleLIKNT1Q5HfqcO+Jmv+NqRW+Pt7fd9Qv9VZWa0m/CNI4AJLIdxtqn2 ahtRMvorDgjftGzpvPW7Uy1rIwJ9o+lSQGSArf/bFx2Kmi9d/tvyC4idvw8hsRlUbf3vd odEDPUzRIZqT8XX7qOCrQJftEz9kWLpaMXPLCWM0qRGZ1KUPHa7/dG0wOzFpJE+4s7ZfT S27BowQ1wH4lOGz+G7PCOc532+ZtAuraYm9jYRWeklkBXzGaAsA7IYWEEXX2FCT4CX3NX +N4mcux4aqc4ph+GpmOcGcEgmDAYZPmGXpAKrLPSn1CzW3XvfHcgKUdEpsmAj8x686A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FkXFnWXh; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76485606A322 for ; Wed, 2 Dec 2026 19:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FkXFnWXh Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABEC41F00897; Wed, 2 Dec 2026 19:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796241257; bh=KkY7EJ4qu1b0CtGBLwHOJCEnedSrs9O4lQWeRTlwjcU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=FkXFnWXh0oGUZGPLG8GAxVAp7SHtgaK+yRyN6DQmXUmomOGz0rPfrklUoyrutWrdT kEIStlwa5eYvN1yyfMhIYEa4n1QqG7zILJVuLxf564t6YtLo93nyL1ASJtEdYQm6Us uhNzmz92zoz+4odtzW7nVCgT4tCBzvvhKimc+YL7CU5NLjoqQIv+wtCqlA1yxnuBMy Ep665G2S+IO92nYef1ZUuP8qCpWHp4xTG1j0luCKkQcUpeWPlTLgI/Xp6GaPhm5EL1 RmwnadgTNF6Ubla2dBmr2ZIOaKMtzo7lSipa5wrGlF6+hRwTnsg/h3mP1OsInly/H4 XKmkQMnJDQgDQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/mlx5: Enter error state on surprise removal Reply-To: sashiko-reviews@lists.linux.dev To: "Tariq Toukan" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261202194317.3593082-1-tariqt@nvidia.com> References: <20261202194317.3593082-1-tariqt@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 19:54:17 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Uri Dar >=20 > On PCI surprise removal, remove_one() drains the health work before > tearing the device down, so the fatal health work never puts the dead > device in error state. Work already posted to the device, such as the > IPoIB multicast leave MADs sent during IB unregister, then never > completes and the removal hangs in mcast_remove_one(). >=20 > On remove_one(), after draining the health work, enter error state if > the device is dead. Do it without the "previous error is still being > handled" check of mlx5_enter_error_state(): once the health work is > drained, nobody else will handle an error that poll_health() already > marked. Skip it when the device is not loaded, for example after a > failed reload: the command interface may not be set up, and no driver > is left waiting on the device. >=20 > Fixes: 41798df9bfca ("net/mlx5: Drain wq first during PCI device removal") > Signed-off-by: Uri Dar > Reviewed-by: Moshe Shemesh > Signed-off-by: Tariq Toukan Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202194317.3593= 082-1-tariqt@nvidia.com?part=3D1