Skip to content

Commit c1f8a39

Browse files
committed
smb3: if max_channels set to more than one channel request multichannel
Mounting with "multichannel" is obviously implied if user requested more than one channel on mount (ie mount parm max_channels>1). Currently both have to be specified. Fix that so that if max_channels is greater than 1 on mount, enable multichannel rather than silently falling back to non-multichannel. Signed-off-by: Steve French <[email protected]> Reviewed-By: Tom Talpey <[email protected]> Cc: <[email protected]> # v5.11+ Reviewed-by: Shyam Prasad N <[email protected]>
1 parent 9c2dc11 commit c1f8a39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/cifs/fs_context.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,9 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
10211021
goto cifs_parse_mount_err;
10221022
}
10231023
ctx->max_channels = result.uint_32;
1024+
/* If more than one channel requested ... they want multichan */
1025+
if (result.uint_32 > 1)
1026+
ctx->multichannel = true;
10241027
break;
10251028
case Opt_handletimeout:
10261029
ctx->handle_timeout = result.uint_32;

0 commit comments

Comments
 (0)