]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit882bdd34678c03270f06cf1f18b49d8d41160933
tree0b2ff94078470eba4bb0152a616c1033a4e4113a
parentfa14b685c94b09816bc5ff26ecb35c95ceecd7d3
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