]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Deferred close for files
authorRohith Surabattula <rohiths@microsoft.com>
Tue, 13 Apr 2021 05:26:42 +0000 (00:26 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 13 Apr 2021 05:32:59 +0000 (00:32 -0500)
commit65a59eadbc3c643fa22142d03f54b3316fb74181
treeeac6ad0dd593f2212316102bd1a33323a3c98a67
parent28ad2324f9df38ca02880947d827d5daff7c3200
cifs: Deferred close for files

When file is closed, SMB2 close request is not sent to server
immediately and is deferred for acregmax defined interval. When file is
reopened by same process for read or write, the file handle
is reused if an oplock is held.

When client receives a oplock/lease break, file is closed immediately
if reference count is zero, else oplock is downgraded.

Signed-off-by: Rohith Surabattula <rohiths@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/file.c
fs/cifs/inode.c
fs/cifs/misc.c