do not clamp read/write request to 60KB
authorAmandeep Gautam <amandeep@cohesity.com>
Wed, 18 Dec 2019 07:30:40 +0000 (23:30 -0800)
committerAmandeep Gautam <amandeep@cohesity.com>
Wed, 18 Dec 2019 07:30:40 +0000 (23:30 -0800)
lib/smb2-cmd-read.c
lib/smb2-cmd-write.c

index 0f4076ffc6be89f78932134fee89dd2a7fdf2acd..9bf538f81aa08627696f1c7f2759fb902a01c58d 100644 (file)
@@ -63,8 +63,8 @@ smb2_encode_read_request(struct smb2_context *smb2,
         
         iov = smb2_add_iovector(smb2, &pdu->out, buf, len, free);
 
-        if (!smb2->supports_multi_credit && req->length > 60 * 1024) {
-                req->length = 60 * 1024;
+        if (!smb2->supports_multi_credit && req->length > 64 * 1024) {
+                req->length = 64 * 1024;
                 req->minimum_count = 0;
         }
         smb2_set_uint16(iov, 0, SMB2_READ_REQUEST_SIZE);
index 5bd55a8588ea26c387337f93ffd9f129e50deeee..591f604135dbf2accac3aff2ce4488491fa432ab 100644 (file)
@@ -63,8 +63,8 @@ smb2_encode_write_request(struct smb2_context *smb2,
 
         iov = smb2_add_iovector(smb2, &pdu->out, buf, len, free);
 
-        if (!smb2->supports_multi_credit && req->length > 60 * 1024) {
-                req->length = 60 * 1024;
+        if (!smb2->supports_multi_credit && req->length > 64 * 1024) {
+                req->length = 64 * 1024;
         }
         smb2_set_uint16(iov, 0, SMB2_WRITE_REQUEST_SIZE);
         smb2_set_uint16(iov, 2, SMB2_HEADER_SIZE + 48);