Re: [PATCH 2/2] fuse: Use d_alloc_trylock() in fuse_direntplus_link()

From: Miklos Szeredi

Date: Fri Oct 16 2026 - 05:40:36 EST


On Tue, 29 Sept 2026 at 05:29, NeilBrown <neilb@xxxxxxxxxxx> wrote:
>
> From: NeilBrown <neil@xxxxxxxxxx>
>
> fuse uses the results of readdir to prime the dcache. Using
> d_alloc_parallel() can block if there is a concurrent lookup. Blocking
> in that case is pointless as the lookup will add info to the dcache and
> there is no value in the readdir waiting to see if it should add the
> info too.

Need to send FORGET in that case. See this sashiko review:

https://sashiko.dev/#/patchset/20260929032927.1451259-1-neilb%40ownmail.net

Thanks,
Miklos