mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
smb3: default to minimum of two channels when multichannel specified
When "multichannel" is specified on mount, make sure to default to at least two channels. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
This commit is contained in:
parent
5f68ea4aa9
commit
1ee0e6d47d
1 changed files with 4 additions and 0 deletions
|
@ -1964,9 +1964,13 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,
|
|||
break;
|
||||
case Opt_multichannel:
|
||||
vol->multichannel = true;
|
||||
/* if number of channels not specified, default to 2 */
|
||||
if (vol->max_channels < 2)
|
||||
vol->max_channels = 2;
|
||||
break;
|
||||
case Opt_nomultichannel:
|
||||
vol->multichannel = false;
|
||||
vol->max_channels = 1;
|
||||
break;
|
||||
case Opt_compress:
|
||||
vol->compression = UNKNOWN_TYPE;
|
||||
|
|
Loading…
Reference in a new issue