From: Fabiano Rosas <farosas@suse.de>
To: Yanfei Xu <yanfei.xu@bytedance.com>, qemu-devel@nongnu.org
Cc: peterx@redhat.com, lizhijian@fujitsu.com,
Yanfei Xu <yanfei.xu@bytedance.com>
Subject: Re: [PATCH 1/3] migration/rdma: Fix write-side shutdown
Date: Wed, 19 Aug 2026 11:58:34 -0300 [thread overview]
Message-ID: <87qzjukvhh.fsf@suse.de> (raw)
In-Reply-To: <20260817105117.3072040-2-yanfei.xu@bytedance.com>
"Yanfei Xu" <yanfei.xu@bytedance.com> writes:
> qio_channel_rdma_shutdown() reads rdmain for both the input and
> output contexts. As a result, a write-side shutdown marks the input
> context as errored while leaving the output context active. A shutdown
> of both directions also fails to stop the output context.
>
> Read rdmaout from the output context so each shutdown direction marks
> the corresponding RDMA context as errored.
>
> Fixes: 54db882f073a ("migration: implement the shutdown for RDMA QIOChannel")
> Signed-off-by: Yanfei Xu <yanfei.xu@bytedance.com>
> ---
> migration/rdma.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/migration/rdma.c b/migration/rdma.c
> index 438419d189..e17ace62b0 100644
> --- a/migration/rdma.c
> +++ b/migration/rdma.c
> @@ -2982,7 +2982,7 @@ qio_channel_rdma_shutdown(QIOChannel *ioc,
> RCU_READ_LOCK_GUARD();
>
> rdmain = qatomic_rcu_read(&rioc->rdmain);
> - rdmaout = qatomic_rcu_read(&rioc->rdmain);
> + rdmaout = qatomic_rcu_read(&rioc->rdmaout);
>
> switch (how) {
> case QIO_CHANNEL_SHUTDOWN_READ:
Reviewed-by: Fabiano Rosas <farosas@suse.de>
next prev parent reply other threads:[~2026-08-19 14:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 10:51 [PATCH 0/3] migration/rdma: Misc RDMA migration fixes Yanfei Xu
2026-08-17 10:51 ` [PATCH 1/3] migration/rdma: Fix write-side shutdown Yanfei Xu
2026-08-19 14:58 ` Fabiano Rosas [this message]
2026-08-19 19:19 ` Peter Xu
2026-08-17 10:51 ` [PATCH 2/3] migration/rdma: Post initial receive before accepting Yanfei Xu
2026-08-19 19:16 ` Peter Xu
2026-08-20 5:46 ` Jinpu Wang
2026-08-20 6:22 ` Yanfei Xu
2026-08-20 13:37 ` Peter Xu
2026-08-17 10:51 ` [PATCH 3/3] migration/rdma: Retry control sends on full queue Yanfei Xu
2026-08-19 19:18 ` Peter Xu
2026-08-20 10:27 ` Yanfei Xu
2026-08-20 13:47 ` Peter Xu
2026-08-21 9:10 ` Yanfei Xu
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=87qzjukvhh.fsf@suse.de \
--to=farosas@suse.de \
--cc=lizhijian@fujitsu.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yanfei.xu@bytedance.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