]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix GlobalMid_Lock bug in cifs_reconnect
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)
commitc1193dc30e2a577a1e0c2fcb743ded63666fac62
tree54a1acbd27462f83c01f4f65512cebf0464be995
parent0fa9182180ed5a0ffd46bd934c3c12d139d20ade
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