Re: [PATCH 3/5] cifs: serialize initialization and cleanup of cfid

Henrique Carvalho
2025-05-02T15:14:26Z

On Fri, May 02, 2025 at 12:10:04PM -0300, Henrique Carvalho wrote:
>
> Second, I am not fully convinced that we need a mutex there. :/ I have
> thought about it many times and I could not get a proof that there is a
> race happening there.
>
> Third, (referencing PATCH 2) even if we have a mutex there, shouldn't we
> just let the thread that just acquired the mutex retry to acquire the
> lease (which I believe is the current behavior).

Here "there" means open_cached_dir.

>
> Thanks,
> Henrique