Re: [PATCH v2] blk-mq: add tracepoint block_rq_tag_wait

From: Aaron Tomlin

Date: Thu Mar 19 2026 - 18:10:45 EST


On Thu, Mar 19, 2026 at 05:52:49PM -0400, Steven Rostedt wrote:
> On Wed, 18 Mar 2026 21:53:00 -0400
> Aaron Tomlin <atomlin@xxxxxxxxxxx> wrote:
>
> > + TP_fast_assign(
> > + __entry->dev = disk_devt(q->disk);
> > + __entry->hctx_id = hctx->queue_num;
> > + __entry->is_sched_tag = is_sched_tag;
> > +
> > + if (__entry->is_sched_tag)
>
> Nit, but why use __entry->is_sched_tag instead of is_sched_tag.
>
> Not sure if the compiler will optimize it (likely it will), but it seems
> cleaner to use the variable directly and not the one assigned.
>
> Perhaps the compiler is smart enough to use one register for both updates.
>
Hi Steve,

Thank you for your feedback.

That was an oversight - I'll correct it now.


Kind regards,
--
Aaron Tomlin

Attachment: signature.asc
Description: PGP signature