All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Zhang Chen <zhangckid@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	"Eric Blake" <eblake@redhat.com>,
	"Michael S . Tsirkin" <mst@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Daniel P . Berrangé" <berrange@redhat.com>,
	"Jason Wang" <jasowangio@gmail.com>
Subject: Re: [PATCH V13 02/15] iothread: introduce holder tracking
Date: Wed, 26 Aug 2026 08:51:27 +0200	[thread overview]
Message-ID: <87wltdidcg.fsf@pond.sub.org> (raw)
In-Reply-To: <CAK3tnv+YRY3F5kfWC_4qh5WY9TGxP7wPCPN6fbEq1_yoWsfpCw@mail.gmail.com> (Zhang Chen's message of "Tue, 25 Aug 2026 21:50:43 +0800")

Zhang Chen <zhangckid@gmail.com> writes:

> On Tue, Aug 25, 2026 at 4:17 PM Markus Armbruster <armbru@redhat.com> wrote:
>>
>> Zhang Chen <zhangckid@gmail.com> writes:
>>
>> > IOThreads do not record the QOM objects and block exports that use
>> > them, making runtime introspection and hotplug debugging difficult.
>> >
>> > Add:
>> >
>> > - holders: a list describing what is holding an iothread
>> > - iothread_ref(): add a holder to the list
>> > - iothread_unref(): remove a holder from the list
>> >
>> > A holder can identify either a QOM object or a block export. A later
>> > patch will expose this information through query-iothreads.
>> >
>> > Signed-off-by: Zhang Chen <zhangckid@gmail.com>
>> > Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
>> > Reviewed-by: Markus Armbruster <armbru@redhat.com>
>>
>> I'm suspending my R-by, see below why.

I'm now reinstating it.

>> [...]
>>
>> > diff --git a/iothread.c b/iothread.c
>> > index 3558535b40..66dfde626e 100644
>> > --- a/iothread.c
>> > +++ b/iothread.c
>> > @@ -21,10 +21,71 @@
>> >  #include "system/iothread.h"
>> >  #include "qapi/error.h"
>> >  #include "qapi/qapi-commands-misc.h"
>> > +#include "qapi/clone-visitor.h"
>> > +#include "qapi/qapi-visit-misc.h"
>> >  #include "qemu/error-report.h"
>> >  #include "qemu/rcu.h"
>> >  #include "qemu/main-loop.h"
>> >
>> > +/* Add a deep copy of @holder to @iothread's list of holders. */
>> > +void iothread_ref(IOThread *iothread, const IOThreadHolder *holder)
>> > +{
>> > +    assert(holder);
>> > +
>> > +    QAPI_LIST_PREPEND(iothread->holders, QAPI_CLONE(IOThreadHolder, holder));
>> > +}
>> > +
>> > +static int iothread_holder_compare(const IOThreadHolder *holder_a,
>> > +                                   const IOThreadHolder *holder_b)
>> > +{
>> > +    const char *name_a, *name_b;
>> > +
>> > +    if (holder_a->type != holder_b->type) {
>> > +        return holder_a->type - holder_b->type;
>>
>> Why did you swap the operands in v13?  Not mentioned in the cover
>> letter's change log.  I requested the other order in review of v8[*] and
>> v9, and you complied in v10.  Unless you have a compelling reason, swap
>> them right back, please.
>>
>> In general, rocking the boat like this when you're at v13 is
>> inadvisable.  It risks delaying the series even more and annoying
>> reviewers.
>
> Please allow me to explain the details, I have always respected the
> opinions of the community.
> Yes, I remember your comments in V9 and I fixed it. This change wasn't
> something I made secretly or accidentally.
> However, Stefan gave the opposite opinion in the V12, and I see you
> didn't object,

I didn't see it.  Sadly, I can't follow the entire discussion of every
version of every series I comment on.

When reviewer A asks you to change something, and reviewer B later asks
you to change it again, there's a conflict.  If A is aware and remains
silent, that may be taken as assent.  But is A aware?  Better ask to
make sure.

> so it was changed according to his suggestion. This might be a misunderstanding.

It is.  Go with your current version.

> https://lists.gnu.org/archive/html/qemu-devel/2026-08/msg05089.html
>
> I look forward to your reply so we can discuss this issue clearly.
>
> Thanks
> Chen

[...]



  reply	other threads:[~2026-08-26  6:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22 21:33 [PATCH V13 00/15] iothread: Support tracking and querying IOThread holders Zhang Chen
2026-08-22 21:33 ` [PATCH V13 01/15] qapi/misc: Fix missed query-iothreads items Zhang Chen
2026-08-22 21:33 ` [PATCH V13 02/15] iothread: introduce holder tracking Zhang Chen
2026-08-25  8:16   ` Markus Armbruster
2026-08-25 13:50     ` Zhang Chen
2026-08-26  6:51       ` Markus Armbruster [this message]
2026-08-22 21:33 ` [PATCH V13 03/15] iothread: track users with holder name Zhang Chen
2026-08-22 21:33 ` [PATCH V13 04/15] iothread: introduce iothread_unsafe_get_aio_context() Zhang Chen
2026-08-22 21:33 ` [PATCH V13 05/15] block/export: track IOThread references Zhang Chen
2026-08-22 21:33 ` [PATCH V13 06/15] monitor: track IOThread users with QOM paths Zhang Chen
2026-08-25  8:21   ` Markus Armbruster
2026-08-22 21:33 ` [PATCH V13 07/15] virtio-vq-mapping: track iothread-vq-mapping references using device path Zhang Chen
2026-08-22 21:33 ` [PATCH V13 08/15] virtio: track IOThread references for thread pinning Zhang Chen
2026-08-22 21:33 ` [PATCH V13 09/15] net/colo: track IOThread references using path-based holder Zhang Chen
2026-08-22 21:33 ` [PATCH V13 10/15] virtio-balloon: Update tracking iothread users with holder Zhang Chen
2026-08-22 21:33 ` [PATCH V13 11/15] vfio-user/proxy: Update tracking iothread users with holder name Zhang Chen
2026-08-22 21:33 ` [PATCH V13 12/15] xen-block: " Zhang Chen
2026-08-22 21:33 ` [PATCH V13 13/15] monitor/hmp: display IOThread holders Zhang Chen
2026-08-25  8:30   ` Markus Armbruster
2026-08-22 21:33 ` [PATCH V13 14/15] iothread: remove legacy iothread_get_aio_context() Zhang Chen
2026-08-22 21:33 ` [PATCH V13 15/15] tests/unit/iothread: update AioContext ref/put helpers Zhang Chen

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=87wltdidcg.fsf@pond.sub.org \
    --to=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=jasowangio@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=zhangckid@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.