CIFS: Fix an issue with re-sending wdata when transport returning -EAGAIN
authorLong Li <longli@microsoft.com>
Fri, 15 Mar 2019 07:54:59 +0000 (07:54 +0000)
committerSteve French <stfrench@microsoft.com>
Sat, 23 Mar 2019 03:36:54 +0000 (22:36 -0500)
commitd53e292f0f505783d0219f58f8f8f294f45f4ee6
treed57eaac83380ee962a293fb80c40dc477e680616
parenta5ed1e96cafde5ba48638f486bfca0685dc6ddc9
CIFS: Fix an issue with re-sending wdata when transport returning -EAGAIN

When sending a wdata, 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