cifs: avoid potential races when handling multiple dfs tcons
authorPaulo Alcantara <pc@manguebit.com>
Thu, 27 Apr 2023 07:40:08 +0000 (04:40 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 4 May 2023 04:29:47 +0000 (23:29 -0500)
commit6be2ea33a4093402252724a00c4af8033725184c
tree79c111db007aed6fab0cb82837480909e17eaabb
parent3dc9c433c9dde15477d02b609ccb4328e2adb6dc
cifs: avoid potential races when handling multiple dfs tcons

Now that a DFS tcon manages its own list of DFS referrals and
sessions, there is no point in having a single worker to refresh
referrals of all DFS tcons.  Make it faster and less prone to race
conditions when having several mounts by queueing a worker per DFS
tcon that will take care of refreshing only the DFS referrals related
to it.

Cc: stable@vger.kernel.org # v6.2+
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/dfs.c
fs/cifs/dfs_cache.c
fs/cifs/dfs_cache.h