From: Peter Zijlstra <peterz@infradead.org>
To: Waiman Long <longman@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>, Will Deacon <will.deacon@arm.com>,
Boqun Feng <boqun.feng@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] locking/semaphore: Use wake_q to wake up processes outside lock critical section
Date: Wed, 22 Jan 2025 11:39:14 +0100 [thread overview]
Message-ID: <20250122103914.GI7145@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20250122011314.2869715-1-longman@redhat.com>
On Tue, Jan 21, 2025 at 08:13:14PM -0500, Waiman Long wrote:
> A circular lock dependency splat has been seen involving down_trylock().
>
> [ 4011.795602] ======================================================
> [ 4011.795603] WARNING: possible circular locking dependency detected
> [ 4011.795607] 6.12.0-41.el10.s390x+debug
> [ 4011.795612] ------------------------------------------------------
> [ 4011.795613] dd/32479 is trying to acquire lock:
> [ 4011.795617] 0015a20accd0d4f8 ((console_sem).lock){-.-.}-{2:2}, at: down_trylock+0x26/0x90
> [ 4011.795636]
> [ 4011.795636] but task is already holding lock:
> [ 4011.795637] 000000017e461698 (&zone->lock){-.-.}-{2:2}, at: rmqueue_bulk+0xac/0x8f0
>
> the existing dependency chain (in reverse order) is:
> -> #4 (&zone->lock){-.-.}-{2:2}:
> -> #3 (hrtimer_bases.lock){-.-.}-{2:2}:
> -> #2 (&rq->__lock){-.-.}-{2:2}:
> -> #1 (&p->pi_lock){-.-.}-{2:2}:
> -> #0 ((console_sem).lock){-.-.}-{2:2}:
The whole #3->#4 thing seems dodgy, where is that? Specifically
hrtimer_bases.lock is a raw_spinlock, while zone->lock is a spinlock,
this is not a valid nesting.
next prev parent reply other threads:[~2025-01-22 10:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-22 1:13 [PATCH] locking/semaphore: Use wake_q to wake up processes outside lock critical section Waiman Long
2025-01-22 10:39 ` Peter Zijlstra [this message]
2025-01-22 14:55 ` Waiman Long
[not found] ` <414a685b-5a30-4792-b01d-35e8099d965b@redhat.com>
2025-01-22 18:16 ` Peter Zijlstra
2025-01-22 18:23 ` Waiman Long
-- strict thread matches above, loose matches on Subject: below --
2022-01-18 15:32 Waiman Long
2022-02-10 2:07 ` Waiman Long
2022-02-10 10:19 ` Peter Zijlstra
2022-02-10 17:04 ` Waiman Long
2022-02-11 10:51 ` Peter Zijlstra
2022-02-11 15:08 ` Waiman Long
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=20250122103914.GI7145@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=boqun.feng@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=will.deacon@arm.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