]> git.itanic.dy.fi Git - linux-stable/commit
smb: client: refresh referral without acquiring refpath_lock
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 01:44:07 +0000 (22:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:20 +0000 (16:38 +0200)
commit6c8411172a34738ae36acb92cbe096c6cbf30fcf
tree5057dd6bb1c5518f9e766fd44baaecd4f777ef46
parente1db9ae87b7148c021daee1fcc4bc71b2ac58a79
smb: client: refresh referral without acquiring refpath_lock

commit 0a05ad21d77a188d06481c36d6016805a881bcc0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/dfs_cache.c