Henrique Carvalho <henrique.carvalho@xxxxxxxx> writes: > Setting dir_cache_timeout to zero should disable the caching of > directory contents. Currently, even when dir_cache_timeout is zero, > some caching related functions are still invoked, which is unintended > behavior. > > Fix the issue by setting tcon->nohandlecache to true when > dir_cache_timeout is zero, ensuring that directory handle caching > is properly disabled. > > Fixes: 238b351d0935 ("smb3: allow controlling length of time directory entries are cached with dir leases") > Signed-off-by: Henrique Carvalho <henrique.carvalho@xxxxxxxx> > --- > V1 -> V2: Split patch and addressed review comments > > fs/smb/client/connect.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Paulo Alcantara (Red Hat) <pc@xxxxxxxxxxxxx>