[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251219135143.7337-1-swarajgaikwad1925@gmail.com>
Date: Fri, 19 Dec 2025 19:21:43 +0530
From: Swaraj Gaikwad <swarajgaikwad1925@...il.com>
To: lgoncalv@...hat.com
Cc: akpm@...ux-foundation.org,
ast@...nel.org,
bigeasy@...utronix.de,
cl@...two.org,
clrkwllms@...nel.org,
david.hunter.linux@...il.com,
harry.yoo@...cle.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org,
linux-rt-devel@...ts.linux.dev,
rientjes@...gle.com,
roman.gushchin@...ux.dev,
rostedt@...dmis.org,
skhan@...uxfoundation.org,
swarajgaikwad1925@...il.com,
syzbot+b1546ad4a95331b2101e@...kaller.appspotmail.com,
vbabka@...e.cz
Subject: Re: [PATCH] slab: fix kmalloc_nolock() context check for PREEMPT_RT
I agree that we can simplify this. I think !preemptible() would be
the most descriptive choice here, as it directly expresses the
constraint, we cannot take a sleeping lock when preemption is
disabled.
The updated check would be:
if (IS_ENABLED(CONFIG_PREEMPT_RT) && !preemptible())
I'll send a v2 with this change unless there are objections.
Swaraj
Powered by blists - more mailing lists