]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write
authorSteve French <stfrench@microsoft.com>
Mon, 17 Jun 2019 19:49:07 +0000 (14:49 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 17 Jun 2019 21:17:56 +0000 (16:17 -0500)
commit0fa9182180ed5a0ffd46bd934c3c12d139d20ade
tree9baebf4c0caaf7628b6807a8f402dbaff641d776
parent15e30fc2ae8ebf516d5be4026903006d40bb871f
SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write

Some servers such as Windows 10 will return STATUS_INSUFFICIENT_RESOURCES
as the number of simultaneous SMB3 requests grows (even though the client
has sufficient credits).  Return EAGAIN on STATUS_INSUFFICIENT_RESOURCES
so that we can retry writes which fail with this status code.

This (for example) fixes large file copies to Windows 10 on fast networks.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2maperror.c