Re: [RFC][PATCH] make sure that lock_for_kill() callers drop the locks in safe order

Al Viro
2026-04-10T21:20:17Z

On Fri, Apr 10, 2026 at 02:13:10PM -0700, Calvin Owens wrote:
> On Friday 04/10 at 15:32 -0400, Jeff Layton wrote:
> > Yep, not even with that. One thing that claude pointed out: doing an
> > mdelay() might prevent it from making any progress freeing dentries.
> > I'm experimenting now with one that only randomly does a delay, but so
> > far that hasn't turned up anything. I'll let you know if that changes.
>
> Hi Jeff,
>
> I've been poking at this one too. With the attached reproducer, the
> waiter will get stuck in an infinite loop apparently in d_walk() with a
> stock 7.0-rc7 (in my case with PREEMPT_LAZY):

Interesting... I'll try it in a bit, but just in case - could you check if
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git #work.dcache-busy-wait
steps into the same thing on your setup?