cifs: Fix DFS cache refresher for DFS links
authorPaulo Alcantara (SUSE) <paulo@paulo.ac>
Tue, 19 Mar 2019 19:54:29 +0000 (16:54 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:54 +0000 (23:24 -0500)
commit5072010ccf0592950f7cfae0eb3c4008e8bf36f7
treecde07048b7fe4faa26308571ca842ea9a36eda7c
parentf5307104e7575b3fb577981b40e466e90fab3392
cifs: Fix DFS cache refresher for DFS links

As per MS-DFSC, when a DFS cache entry is expired and it is a DFS
link, then a new DFS referral must be sent to root server in order to
refresh the expired entry.

This patch ensures that all new DFS referrals for refreshing the cache
are sent to DFS root.

Signed-off-by: Paulo Alcantara (SUSE) <paulo@paulo.ac>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dfs_cache.c
fs/cifs/dfs_cache.h