Skip to content

Commit 5293c79

Browse files
smfrenchgregkh
authored andcommitted
SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write
commit 8d526d6 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent db7f107 commit 5293c79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/smb2maperror.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static const struct status_to_posix_error smb2_error_map_table[] = {
457457
{STATUS_FILE_INVALID, -EIO, "STATUS_FILE_INVALID"},
458458
{STATUS_ALLOTTED_SPACE_EXCEEDED, -EIO,
459459
"STATUS_ALLOTTED_SPACE_EXCEEDED"},
460-
{STATUS_INSUFFICIENT_RESOURCES, -EREMOTEIO,
460+
{STATUS_INSUFFICIENT_RESOURCES, -EAGAIN,
461461
"STATUS_INSUFFICIENT_RESOURCES"},
462462
{STATUS_DFS_EXIT_PATH_FOUND, -EIO, "STATUS_DFS_EXIT_PATH_FOUND"},
463463
{STATUS_DEVICE_DATA_ERROR, -EIO, "STATUS_DEVICE_DATA_ERROR"},

0 commit comments

Comments
 (0)