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=1796532013; b=UXa/cqa/iG8bJxLf6ZJFkzq3pCoQmPuk+I0BaLOIJJuPvRX64wTkogjVEFDTKcF+lQiF IAKRoxfm7tWkf+QbmNUkB6IsCp0WGh3Xbvv2aGJ1FIHmbqixrs1HZ2xO3v8j3EK4L2r4H p5HAXIYtB18dNBHgOigWDBIzawSRqRliniwIy5PzGTCU2A8FDUrLJGP+01VnqDp7uNWDO oDQCzQY4d0yQxNqqSTRMsaexFCtmZ4ACSNczoAEqQ+ETD1vC3EcqUF6nTf+Spekmx0xY6 vEAOPt1tgLiutWsr++eUxGwro+zZkZwFp2lHnHPtUPr6nrD4E2147vIZYahpwsftQlA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796532013; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=gc1FBPypV1fYXw9BC1eNUlIUAufgtoEZ1RlFwglWneE=; b=IHpD5DQUs/8JinGoqIAOHi3utrfLviE7HqaPr+CKLxOI2bHuftQD7TXCTtKS43rYKGY3 gIyRxVqEEmy/YWujeecwfciU1HOnTn+D2im4MAlZk4xqwf/ur9UeEGUkzbZSOsU8BtkoR 7/zWFUwX8DKnegAS3jlSoXdS+9gwl7Ecwf16eNAhEng0G0Ba9/TXSdizw2jGcQZSLb8BH xbOHR4CFK23T2oPMQxjpDW9k/zS0A9pI5czBAbjsCOO0dy3w95UpVfvWDZdvmcRK4BwnR 9g70+lB/bW7y/nI0I+e+j0nAVMFsBE9UQdyJ40aqudH8XDAu3ytiScTbUhuHs74CBOA== 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=QPKyV7lt; 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 C7064606A336; Sun, 6 Dec 2026 04:40:13 +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=QPKyV7lt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64E821F00A1A; Sun, 6 Dec 2026 04:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796532013; bh=gc1FBPypV1fYXw9BC1eNUlIUAufgtoEZ1RlFwglWneE=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=QPKyV7ltz7F8dvBoHPmS0hcTaqRYkeUejvrErmIw2gVgkUZaBm7hLqFUDuwQjF15S l1ejTf3Z0jOg96elMwiYmiamAuq9SduvOGRPrQsiReDX6to7RMjZ8tOBrmt2NYh6vM dk6ijik0nXjP1gRwvFLPHQO3jwE6N/GuQMy+7sJ+Y1v5hhclPfRDneTK/OZGZAdEim iG2UVAv5+NRZqKiSUtyQWtm3kzuUM359QPbXgIi/x9b6mzOcB9miaGbACUn6YczfL3 tzgdzzL/m6V4amgC82FRlhP+7BfkFKQ8sI13JV3ekLSwtbNN8h1VkvfPfnzUnU0zQF 92Sz1fW5tTzWA== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 59AB73808236; Sun, 6 Dec 2026 04:40:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net/rds: use wq_has_sleeper() in rds_ib_ring_free() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179653201189.2482135.18273168067621132991.git-patchwork-notify@kernel.org> Date: Sun, 06 Dec 2026 04:40:11 +0000 References: <20261129024701.277838-1-zhenwenliang@google.com> In-Reply-To: <20261129024701.277838-1-zhenwenliang@google.com> To: Zhenwen Liang Cc: achender@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com Hello: This patch was applied to netdev/net-next.git (main) by Willem de Bruijn : On Sun, 29 Nov 2026 02:47:01 +0000 you wrote: > rds_ib_ring_free() returns slots to a work ring with atomic_add() and > then checks waitqueue_active() on rds_ib_ring_empty_wait to decide > whether anyone needs waking. atomic_add() carries no ordering and > waitqueue_active() is a plain load, so nothing orders the counter update > before the wait queue read. The waiter does the mirror image: > rds_ib_conn_path_shutdown() adds itself to rds_ib_ring_empty_wait in > wait_event_timeout(), which sets the task state with a full barrier, and > then checks, among other conditions, whether the receive ring is empty. > That is the store-buffering pattern described above waitqueue_active() > in include/linux/wait.h: the waker can observe an empty wait queue while > the waiter still observes the ring as not empty, and no wakeup is > issued, so connection shutdown in rds_ib_conn_path_shutdown() stalls: on > kernels with commit 16f48efaeb69 ("net/rds: Don't sleep inside > rds_ib_conn_path_shutdown") or its stable backports, the waiter wakes > after at most about 1 s; on kernels without it, it waits until the next > wakeup. > > [...] Here is the summary with links: - [net] net/rds: use wq_has_sleeper() in rds_ib_ring_free() https://git.kernel.org/netdev/net-next/c/8c04cc3a0297 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html