Defer close only when lease is enabled.
authorRohith Surabattula <rohiths@microsoft.com>
Mon, 17 May 2021 11:28:34 +0000 (11:28 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 20 May 2021 02:11:28 +0000 (21:11 -0500)
commit0ab95c2510b641fb860a773b3d242ef9768a8f66
treeb55de54e7a8ecfc56f8e01bc4e922b38d427c5ea
parent860b69a9d77160d21ca00357fd6c5217f9d41fb1
Defer close only when lease is enabled.

When smb2 lease parameter is disabled on server. Server grants
batch oplock instead of RHW lease by default on open, inode page cache
needs to be zapped immediatley upon close as cache is not valid.

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