cifs: Handle -EINPROGRESS only when noblockcnt is set
authorPaulo Alcantara (SUSE) <pc@cjr.nz>
Thu, 10 Oct 2019 15:31:58 +0000 (12:31 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Oct 2019 00:19:49 +0000 (19:19 -0500)
commitd532cc7efdfd7bf4b9e1c287d823e584843f1de1
tree599d16d32e3d5de86353b42ebf18c08c8bf81a3a
parent7d194c2100ad2a6dded545887d02754948ca5241
cifs: Handle -EINPROGRESS only when noblockcnt is set

We only want to avoid blocking in connect when mounting SMB root
filesystems, otherwise bail out from generic_ip_connect() so cifs.ko
can perform any reconnect failover appropriately.

This fixes DFS failover/reconnection tests in upstream buildbot.

Fixes: 8eecd1c2e5bc ("cifs: Add support for root file systems")
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c