]> git.baikalelectronics.ru Git - kernel.git/commit
Adjust cifssb maximum read size
authorRohith Surabattula <rohiths@microsoft.com>
Mon, 7 Mar 2022 18:37:22 +0000 (18:37 +0000)
committerSteve French <stfrench@microsoft.com>
Sat, 19 Mar 2022 04:06:28 +0000 (23:06 -0500)
commit43e542a6786aa72e70778c1e2049b4ac0f774214
treeedea59338cdfc4209552267bd1ec2509d434d17d
parent94679a4c835f533fa7a8718b0834eb1f8abb1f1e
Adjust cifssb maximum read size

When session gets reconnected during mount then read size in super block fs context
gets set to zero and after negotiate, rsize is not modified which results in
incorrect read with requested bytes as zero. Fixes intermittent failure
of xfstest generic/240

Note that stable requires a different version of this patch which will be
sent to the stable mailing list.

Signed-off-by: Rohith Surabattula <rohiths@microsoft.com>
Acked-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/file.c