aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorPaulo Alcantara (SUSE) <pc@cjr.nz>2019-11-22 12:30:53 -0300
committerSteve French <stfrench@microsoft.com>2019-11-25 09:33:04 -0600
commit84a1f5b1cc6fd7f6cd99fc5630c36f631b19fa60 (patch)
tree58346cce7b4f68ef8dc41b39c09c9885436750c4 /fs/cifs/connect.c
parentcifs: Fix lookup of root ses in DFS referral cache (diff)
downloadlinux-dev-84a1f5b1cc6fd7f6cd99fc5630c36f631b19fa60.tar.xz
linux-dev-84a1f5b1cc6fd7f6cd99fc5630c36f631b19fa60.zip
cifs: Fix potential softlockups while refreshing DFS cache
We used to skip reconnects on all SMB2_IOCTL commands due to SMB3+ FSCTL_VALIDATE_NEGOTIATE_INFO - which made sense since we're still establishing a SMB session. However, when refresh_cache_worker() calls smb2_get_dfs_refer() and we're under reconnect, SMB2_ioctl() will not be able to get a proper status error (e.g. -EHOSTDOWN in case we failed to reconnect) but an -EAGAIN from cifs_send_recv() thus looping forever in refresh_cache_worker(). Fixes: e99c63e4d86d ("SMB3: Fix deadlock in validate negotiate hits reconnect") Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Suggested-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions