From: sashiko-bot@kernel.org
To: "Jia Jia" <physicalmtea@gmail.com>
Cc: virtualization@lists.linux.dev,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH net-next v5 4/5] vsock/virtio: coalesce native RX write-space notifications
Date: Fri, 23 Oct 2026 08:14:31 +0000 [thread overview]
Message-ID: <sashiko-outbox-182492@kernel.org> (raw)
In-Reply-To: <20261023075140.9613-5-physicalmtea@gmail.com>
> Each received packet can update peer credit and call sk_write_space(). A
> writer cannot consume that credit while the virtio RX worker retains the
> socket lock, so repeated native write-space notifications in one RX batch
> are unnecessary.
>
> This patch coalesces write-space notifications on the native AF_VSOCK path;
> data-ready remains per-packet here.
>
> The batching patch establishes batch ownership before its first packet.
> This lets this patch record a pending notification for that packet and
> flush it even if the packet immediately ends the batch. Deliver it while
> holding the socket lock to preserve the callback context of the existing
> receive path. A following patch changes that timing together with
> data-ready handling.
>
> Capture the native write-space callback before socket publication and
> access it through AF_VSOCK helpers. Sockmap can change the protocol,
> write-space callback, and psock marker without the socket lock. Serialize
> each batch eligibility check with sk_callback_lock; if a packet boundary
> observes a replacement, finish the batch and use the regular per-packet
> path.
>
> Packets admitted on the native path use the saved native callback at batch
> finish. Reloading a current sockmap callback would not synchronize its
> invocation with teardown; a wrapper seen before teardown need not forward
> the native wakeup after its psock is gone.
>
> Signed-off-by: Jia Jia <physicalmtea@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261023075140.9613-1-physicalmtea@gmail.com?part=4
next prev parent reply other threads:[~2026-10-23 8:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 7:51 [PATCH net-next v5 0/5] vsock/virtio: reduce RX per-packet socket overhead Jia Jia
2026-10-23 7:51 ` [PATCH net-next v5 1/5] vsock/virtio: split socket lookup from locked RX processing Jia Jia
2026-10-23 8:14 ` sashiko-bot
2026-10-23 7:51 ` [PATCH net-next v5 2/5] vsock/virtio: factor RX skb metadata budget check Jia Jia
2026-10-23 8:14 ` sashiko-bot
2026-10-23 7:51 ` [PATCH net-next v5 3/5] vsock/virtio: amortize RX socket locking for stream packets Jia Jia
2026-10-23 8:14 ` sashiko-bot
2026-10-23 7:51 ` [PATCH net-next v5 4/5] vsock/virtio: coalesce native RX write-space notifications Jia Jia
2026-10-23 8:14 ` sashiko-bot [this message]
2026-10-23 7:51 ` [PATCH net-next v5 5/5] vsock/virtio: defer native RX readiness notifications until batch unlock Jia Jia
2026-10-23 8:14 ` sashiko-bot
2026-10-27 12:20 ` [PATCH net-next v5 0/5] vsock/virtio: reduce RX per-packet socket overhead Paolo Abeni
-- strict thread matches above, loose matches on Subject: below --
2026-11-03 4:11 Jia Jia
2026-11-03 4:11 ` [PATCH net-next v5 4/5] vsock/virtio: coalesce native RX write-space notifications Jia Jia
2026-11-05 9:21 ` Stefano Garzarella
2026-11-06 12:49 ` Jia Jia
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=sashiko-outbox-182492@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=physicalmtea@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).