CIFS: Check for reconnects before sending compound requests
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 16 Jan 2019 00:07:52 +0000 (16:07 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:10:01 +0000 (18:10 -0600)
commit97ea499883cc0566b1fafdc12ca49d0926aab332
tree14c725575336fb73934c03d96743c4f13924d79b
parent3349c3a79fb5d7632bfe426c014cbb589d1ca8e0
CIFS: Check for reconnects before sending compound requests

The reconnect might have happended after we obtained credits
and before we acquired srv_mutex. Check for that under the mutex
and retry a sync operation if the reconnect is detected.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c