From: Breno Leitao <leitao@debian.org>
To: Dmitry Ilvokhin <d@ilvokhin.com>
Cc: paulmck@kernel.org, linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@kernel.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
kernel-team@meta.com, Thomas Gleixner <tglx@kernel.org>
Subject: Re: [PATCH] locking/csd-lock: Report how long a stuck CSD lock took to recover
Date: Fri, 7 Aug 2026 06:16:33 -0700 [thread overview]
Message-ID: <anXZyyMve3uVqnEm@gmail.com> (raw)
In-Reply-To: <anW6EcABJdRFbvu7@shell.ilvokhin.com>
On Fri, Aug 07, 2026 at 10:57:21AM +0000, Dmitry Ilvokhin wrote:
> On Wed, Aug 05, 2026 at 05:51:54AM -0700, Breno Leitao wrote:
> > -static bool csd_lock_wait_toolong(call_single_data_t *csd, u64 ts0, u64 *ts1, int *bug_id, unsigned long *nmessages)
> > +static bool csd_lock_wait_toolong(call_single_data_t *csd, u64 ts0, u64 *ts1, u64 *ts_resend,
> > + int *bug_id, unsigned long *nmessages)
>
> nit: csd_lock_wait_toolong() has too many arguments now to my liking.
> This was already a bit awkward before, maybe it is time for a small
> clean up. Does it make sense to pack timestamps, bug_id and nmessages
> into a struct and pass it around instead?
I would say so. Also, those parameters (tsX) were a bit hard to
understand, and when I create the other function, I've tried to keep it
a bit more sane (ts_start, ts_unstuck, ts_resend) instead of tsX.
> That could go in as a separate cleanup ahead of this one.
I am more than happy to do it. Let's see what Paul says.
> Other than that, it looks reasonable to me.
>
> With or without that:
>
> Reviewed-by: Dmitry Ilvokhin <d@ilvokhin.com>
Thanks for the review,
--breno
next prev parent reply other threads:[~2026-08-07 13:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 12:51 Breno Leitao
2026-08-07 10:57 ` Dmitry Ilvokhin
2026-08-07 13:16 ` Breno Leitao [this message]
2026-08-07 23:14 ` Paul E. McKenney
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=anXZyyMve3uVqnEm@gmail.com \
--to=leitao@debian.org \
--cc=bigeasy@linutronix.de \
--cc=d@ilvokhin.com \
--cc=kernel-team@meta.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=paulmck@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@kernel.org \
/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
all inboxes | Powered by JetHome®