]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/cifs/cifsglob.h
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)
commit41e033fecdc891da629113c4f8ee80500b7656d6
tree4a5814b5751e18229462828564d644b9b724d5fc
parent1981ebaabd88a9b3e550b6163c570a498c32a1f5
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