From: Alexey Kuznetsov <kuznet@virtuozzo.com>
To: Vladimir Riabchun <vladimir.riabchun@virtuozzo.com>
Cc: devel@openvz.org, Liu Kui <kui.liu@virtuozzo.com>,
azaitsev@virtuozzo.com
Subject: Re: [Devel] [PATCH hci-8.1] fs/fuse kio: start connect once per rpc_queue_work batch
Date: Tue, 22 Sep 2026 18:46:54 +0800 [thread overview]
Message-ID: <CAMrnHh44M4nHv-hAc-pGpWp+hRL62HoWPcgPoxeE6L5hTeXBWg@mail.gmail.com> (raw)
In-Reply-To: <0d1074e7-a34d-4137-8c77-09927042606a@virtuozzo.com>
On Tue, Sep 22, 2026 at 5:41 PM Vladimir Riabchun
<vladimir.riabchun@virtuozzo.com> wrote:
> I now think it won't work: we take messages from ep->input_queue,
> move them to ep->state_queue via pcs_rpc_send, but also while doing
> this we set msg->rpc = ep. When we reach second pcs_rpc_send with
> this message, it will trigger BUG_ON(msg->rpc != (requeue ? ep: NULL)).
Please, elaborate.
Yes, the code is kind of strange, I daresay. Apparently, original author did
some wrong assumptions and left mud, and when we cleaned it up later, instead of
just cleanup we left old paths, added BUG_ONs and abundant comments,
apparently being afraid that we miss something. :-) Must just be
deleted altogether.
Yet the intent is clear. msg->rpc is NULL while message is in
input_queue. It grabs ref
and assigns it the first time it leaves this queue. And after this
it stays == ep. It does not even correlate with the patch.
> So you think we should keep the RK patch simple and not bother with
> already stuck nodes
This is yes.
>... and force options?
And this is up to you. IMHO the whole digging of stack in livepatch is
entirely useless,
protects from nothing. At least I do not understand this wisdom and
leave paranoia to persons
who do understand.
As I see the only real danger is when after patch old code which is
still running (old rpc_queue_work())
calls pcs_rpc_send, which after the patch is _new_. This means that
rpc connect can
be missed because it is removed from pcs_rpc_send, and old rpc_queue_work does
not have it. Well, it is not a big deal, it will timeout and redone later.
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-09-22 10:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 11:28 Liu Kui
2026-09-21 12:13 ` Alexey Kuznetsov
2026-09-21 20:52 ` Vladimir Riabchun
2026-09-21 21:17 ` Alexey Kuznetsov
2026-09-22 9:38 ` Vladimir Riabchun
2026-09-22 10:46 ` Alexey Kuznetsov [this message]
2026-09-22 11:36 ` Vladimir Riabchun
2026-09-22 13:12 ` Alexey Kuznetsov
2026-09-22 14:10 ` Vladimir Riabchun
2026-09-22 15:01 ` Alexey Kuznetsov
2026-09-22 15:19 ` Vladimir Riabchun
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=CAMrnHh44M4nHv-hAc-pGpWp+hRL62HoWPcgPoxeE6L5hTeXBWg@mail.gmail.com \
--to=kuznet@virtuozzo.com \
--cc=azaitsev@virtuozzo.com \
--cc=devel@openvz.org \
--cc=kui.liu@virtuozzo.com \
--cc=vladimir.riabchun@virtuozzo.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