[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ec2469aa-5586-4169-a8d3-2f768fbe0ff8@suse.cz>
Date: Thu, 28 Aug 2025 19:21:36 +0200
From: Vlastimil Babka <vbabka@...e.cz>
To: Shakeel Butt <shakeel.butt@...ux.dev>
Cc: Yueyang Pan <pyyjason@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Suren Baghdasaryan <surenb@...gle.com>, Michal Hocko <mhocko@...e.com>,
Brendan Jackman <jackmanb@...gle.com>, Johannes Weiner <hannes@...xchg.org>,
Zi Yan <ziy@...dia.com>, Usama Arif <usamaarif642@...il.com>,
linux-mm@...ck.org, kernel-team@...a.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 2/2] mm/show_mem: Add trylock while printing alloc info
On 8/28/25 18:35, Shakeel Butt wrote:
> On Thu, Aug 28, 2025 at 10:41:23AM +0200, Vlastimil Babka wrote:
>> >
>> > I was not aware of interrupt context before. I will change to test-and-set
>> > lock in the next version.
>>
>> Perhaps simply spinlock_t with spin_trylock()?
>>
>
> Will lockdep complain that this spinlock is taken in non-irq and irq
> context without disabling irqs?
If we only use spin_trylock then it won't.
Powered by blists - more mailing lists