smb: client: refresh referral without acquiring refpath_lock
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 01:44:07 +0000 (22:44 -0300)
committerSteve French <stfrench@microsoft.com>
Tue, 2 Apr 2024 15:11:43 +0000 (10:11 -0500)
commit0a05ad21d77a188d06481c36d6016805a881bcc0
tree0d8ed59b1172f9fd196377149f0e58d677d5f41d
parent062a7f0ff46eb57aff526897bd2bebfdb1d3046a
smb: client: refresh referral without acquiring refpath_lock

Avoid refreshing DFS referral with refpath_lock acquired as the I/O
could block for a while due to a potentially disconnected or slow DFS
root server and then making other threads - that use same @server and
don't require a DFS root server - unable to make any progress.

Cc: stable@vger.kernel.org # 6.4+
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/dfs_cache.c