Re: [PATCH] mm: switch deferred split shrinker to list_lru
From: Yosry Ahmed
Date: Wed Mar 11 2026 - 18:03:48 EST
> > Okay, lockdep actually does warn. rcu_read_lock_held() is explicit and
> > not appeased by implicit RCU sections.
> >
> > Paul pointed me to rcu_read_lock_any_held(), which we could use in
> > obj_cgroup_memcg() to suppress the splat and permit implicit RCU.
> >
> > Or we can make rcu_read_lock() explicit in the above code.
> >
> > Any preferences for how we want to handle this in MM code?
>
> I would vote for explicit rcu_read_lock() to be consistent with other places.
+1