aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2019-09-20 04:32:20 +0200
committerSteve French <stfrench@microsoft.com>2019-11-25 01:16:30 -0600
commitbcc8880115bcb36bc281c7f4895a12b51569d8d4 (patch)
treef3e28f2c029e5b5f104e52770facfc83a563a59a /fs/cifs/cifsfs.c
parentcifs: sort interface list by speed (diff)
downloadlinux-dev-bcc8880115bcb36bc281c7f4895a12b51569d8d4.tar.xz
linux-dev-bcc8880115bcb36bc281c7f4895a12b51569d8d4.zip
cifs: add multichannel mount options and data structs
adds: - [no]multichannel to enable/disable multichannel - max_channels=N to control how many channels to create these options are then stored in the volume struct. - store channels and max_channels in cifs_ses Signed-off-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 7bd7cd31d8f5..5664bb7ba40f 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -613,6 +613,10 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
/* convert actimeo and display it in seconds */
seq_printf(s, ",actimeo=%lu", cifs_sb->actimeo / HZ);
+ if (tcon->ses->chan_max > 1)
+ seq_printf(s, ",multichannel,max_channel=%zu",
+ tcon->ses->chan_max);
+
return 0;
}