Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Zhenwen Liang <zhenwenliang@google.com>
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
Subject: Re: [PATCH net] net/rds: use wq_has_sleeper() in rds_ib_ring_free()
Date: Sun, 06 Dec 2026 04:40:11 +0000	[thread overview]
Message-ID: <179653201189.2482135.18273168067621132991.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261129024701.277838-1-zhenwenliang@google.com>

Hello:

This patch was applied to netdev/net-next.git (main)
by Willem de Bruijn <willemb@google.com>:

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



      parent reply	other threads:[~2026-12-06  4:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  2:47 [PATCH net] net/rds: use wq_has_sleeper() in rds_ib_ring_free() Zhenwen Liang
2026-11-29  2:50 ` sashiko-bot
2026-11-30  7:25 ` Allison Henderson
2026-12-06  4:40 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179653201189.2482135.18273168067621132991.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=achender@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rds-devel@oss.oracle.com \
    --cc=willemb@google.com \
    --cc=zhenwenliang@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox