cifs: fix GlobalMid_Lock bug in cifs_reconnect 5.2-rc5-smb3-fixes
authorRonnie Sahlberg <lsahlber@redhat.com>
Fri, 14 Jun 2019 03:02:29 +0000 (13:02 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 17 Jun 2019 21:27:02 +0000 (16:27 -0500)
commit61cabc7b0a5cf0d3c532cfa96594c801743fe7f6
tree54a1acbd27462f83c01f4f65512cebf0464be995
parent8d526d62db907e786fd88948c75d1833d82bd80e
cifs: fix GlobalMid_Lock bug in cifs_reconnect

We can not hold the GlobalMid_Lock spinlock during the
dfs processing in cifs_reconnect since it invokes things that may sleep
and thus trigger :

BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:23

Thus we need to drop the spinlock during this code block.

RHBZ: 1716743

Cc: stable@vger.kernel.org
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c