]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdef8ac3ff806b4510c3baae8055cb678e1c1e8e9
treed57eaac83380ee962a293fb80c40dc477e680616
parentf85eeab988969d0eb2163425b4c8aa296743eb1a
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