summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2019-09-20 05:32:20 +0300
committerSteve French <stfrench@microsoft.com>2019-11-25 10:16:30 +0300
commitbcc8880115bcb36bc281c7f4895a12b51569d8d4 (patch)
treef3e28f2c029e5b5f104e52770facfc83a563a59a /fs/cifs/cifsfs.c
parent35adffed079fdcf1818bfe9da7625a5446b626e0 (diff)
downloadlinux-bcc8880115bcb36bc281c7f4895a12b51569d8d4.tar.xz
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;
}