CIFS: Fix an issue with re-sending rdata when transport returning -EAGAIN
authorLong Li <longli@microsoft.com>
Fri, 15 Mar 2019 07:55:00 +0000 (07:55 +0000)
committerSteve French <stfrench@microsoft.com>
Sat, 23 Mar 2019 03:36:54 +0000 (22:36 -0500)
commit0b0dfd59216755cfa5a47eab2811efaa4589db68
tree0b2ff94078470eba4bb0152a616c1033a4e4113a
parentd53e292f0f505783d0219f58f8f8f294f45f4ee6
CIFS: Fix an issue with re-sending rdata when transport returning -EAGAIN

When sending a rdata, transport may return -EAGAIN. In this case
we should re-obtain credits because the session may have been
reconnected.

Change in v2: adjust_credits before re-sending

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/file.c