]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add mount option to allow RW caching of share accessed by only 1 client
authorSteve French <stfrench@microsoft.com>
Fri, 30 Aug 2019 07:12:41 +0000 (02:12 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:38 +0000 (11:43 -0500)
commit3397437acd79cba22ee969aedd37a8faf8c596ab
tree4a5814b5751e18229462828564d644b9b724d5fc
parentb009d974c847ac265f72f19d10f5f132d3fa443d
smb3: add mount option to allow RW caching of share accessed by only 1 client

If a share is known to be only to be accessed by one client, we
can aggressively cache writes not just reads to it.

Add "cache=" option (cache=singleclient) for mounting read write shares
(that will not be read or written to from other clients while we have
it mounted) in order to improve performance.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/connect.c