kernel_optimize_test/fs/cifs
Pavel Shilovsky 7b9b9edb49 CIFS: Do not reset lease state to NONE on lease break
Currently on lease break the client sets a caching level twice:
when oplock is detected and when oplock is processed. While the
1st attempt sets the level to the value provided by the server,
the 2nd one resets the level to None unconditionally.
This happens because the oplock/lease processing code was changed
to avoid races between page cache flushes and oplock breaks.
The commit c11f1df500 ("cifs: Wait for writebacks to complete
before attempting write.") fixed the races for oplocks but didn't
apply the same changes for leases resulting in overwriting the
server granted value to None. Fix this by properly processing
lease breaks.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
2019-03-04 20:05:35 -06:00
..
asn1.c
cache.c
cifs_debug.c cifs: print CIFSMaxBufSize as part of /proc/fs/cifs/DebugData 2019-01-24 14:52:06 -06:00
cifs_debug.h
cifs_dfs_ref.c cifs: Add support for failover in cifs_mount() 2018-12-28 10:10:29 -06:00
cifs_fs_sb.h cifs: Add support for failover in cifs_reconnect() 2018-12-28 10:13:11 -06:00
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c
cifsfs.c cifs: Make use of DFS cache to get new DFS referrals 2018-12-28 10:09:46 -06:00
cifsfs.h cifs: update internal module version number 2019-01-31 07:05:06 -06:00
cifsglob.h CIFS: Fix error paths in writeback code 2019-01-11 07:14:40 -06:00
cifspdu.h
cifsproto.h cifs: Add support for failover in smb2_reconnect() 2018-12-28 10:13:11 -06:00
cifssmb.c cifs: replace snprintf with scnprintf 2019-03-04 20:05:34 -06:00
connect.c cifs: add credits from unmatched responses/messages 2019-03-04 20:05:34 -06:00
dfs_cache.c cifs: Fix a tiny potential memory leak 2019-01-10 14:32:30 -06:00
dfs_cache.h
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c smb3: fix bytes_read statistics 2019-03-04 20:05:35 -06:00
fscache.c
fscache.h
inode.c CIFS: Fix error paths in writeback code 2019-01-11 07:14:40 -06:00
ioctl.c
Kconfig cifs: Minor Kconfig clarification 2018-12-28 10:13:11 -06:00
link.c cifs: replace snprintf with scnprintf 2019-03-04 20:05:34 -06:00
Makefile
misc.c cifs: Add support for failover in smb2_reconnect() 2018-12-28 10:13:11 -06:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c
smb1ops.c cifs: Make use of DFS cache to get new DFS referrals 2018-12-28 10:09:46 -06:00
smb2file.c cifs: Fix potential OOB access of lock element array 2019-01-11 07:14:40 -06:00
smb2glob.h
smb2inode.c CIFS: Fix mounts if the client is low on credits 2019-01-24 14:52:06 -06:00
smb2maperror.c
smb2misc.c CIFS: Do not reset lease state to NONE on lease break 2019-03-04 20:05:35 -06:00
smb2ops.c CIFS: Do not reset lease state to NONE on lease break 2019-03-04 20:05:35 -06:00
smb2pdu.c cifs: replace snprintf with scnprintf 2019-03-04 20:05:34 -06:00
smb2pdu.h cifs: limit amount of data we request for xattrs to CIFSMaxBufSize 2019-01-29 16:17:25 -06:00
smb2proto.h cifs: we can not use small padding iovs together with encryption 2018-12-31 00:58:52 -06:00
smb2status.h
smb2transport.c
smbdirect.c cifs: replace snprintf with scnprintf 2019-03-04 20:05:34 -06:00
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c smb3: Cleanup license mess 2019-01-24 09:37:33 -06:00
trace.h smb3: Cleanup license mess 2019-01-24 09:37:33 -06:00
transport.c CIFS: Fix credit calculations in compound mid callback 2019-01-24 14:52:06 -06:00
winucase.c
xattr.c